Dark Horse programmer--"Dark Horse video Notes" OC language basics such as the essence

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.