OBJECTIVE-C Program Structure

Source: Internet
Author: User

Classes are the core of objective-c, and objective-c programs are all around classes. The OBJECTIVE-C program consists of at least the following three parts:

1. Class Interface: Defines the data and methods of the class, but does not include the implementation code of the method.

2, class implementation: warehousing the implementation of the class method code.

3. Application: Call the class to complete some actual operation of the application.


Class interface, which we can understand as the *.h of the header file, which is the definition of the class in the C + + language.

Class implementation, we can understand the *.cpp file in the C + + language, that is, the implementation code of the class.

The application also consists of our main function and other functions that implement some function code.


OBJECTIVE-C Program Structure

Related Article

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.