OC is in the process of running to detect whether the object does not implement the corresponding method, all the compilation process only give a warning: may not find the corresponding method;
If the program goes wrong during the run, the program will flash; class method: a method that a class can call directly, equivalent to a static method in Java, but a class method can only be called by a class, and an object cannot invoke a method that begins with a class method, an object Method: 1, beginning with '-' 2, can only be called by the object 3, the object method can only call the current object instance variable or member variable class method: 1, start with ' + ' 2, can only be called by the Class 3, class method cannot call instance variable or member variable can allow class method and object method with the same name the advantages and applications of the class method: 1, do not depend on the object, the execution efficiency is 2, can use the class method to use the class Method 3, as long as the method does not need to call the member variable, then the method can be changed the class method self in the object method to represent the pointer to the current object (who called the current method, Self on behalf of WHO), equivalent to Java thisself appear in the object method, representing the current object self appears in the class method, representing the current class self-> member variable [self method name], you can call the current object method or class method
OC Weak syntax