I. Nature of the class
1: The// class itself is also an object, is a class-type object, short-class object
2:
3: / *
4: Create a person class object with Class
5:
6: Create object of person type with person class object
7:
8: * /
Second, the load order of the Class 1. When the program starts, all classes and classifications in the project are loaded, and the +load method for each class and classification is called after it is loaded. will only be called once. 2. When a class is first used, the current class's +initialize Method 3 is called. Load the parent class first, then load the subclass (call the +load method of the parent class first, then call the +load method of the subclass) first initialize the parent class, and then initialize the child class (the +initialize method of the parent class is called first. Then call the subclass's +initialize method)
Dark Horse programmer--"Dark Horse video Notes" OC language basics such as the essence