First, OC Introduction
1.OC is an object-oriented programming, the main decomposition of the problem composed of objects, coordinate the object to contact and communication to solve the problem.
2.C language is a process-oriented idea, which analyzes the steps to solve the problem, realizes the function, and calls the function.
3.objective-c is one of the core of Apple OS X and IOS OS.
Note: You should be aware of the C language or similar programming language before learning OC, and you should understand its rationale for any programming language.
II. Classes and objects
1. What is a class?
Class: Has the same characteristic attribute, divides into: class name, attribute and method.
2. What is an object?
Objects: Features with classes
3. Class and Object relationships?
Classes and objects are the core of an object-oriented object, which is an instance of the class that is the type of the object.
Third, OC Learning
1. Make detailed comments on each step:
A. Main function:
B. declaration
C. Implementation
D. Printing results
Iv. Mastery of content:
What is a class? What is an object? How do I create an object? How do you declare and implement a method and invoke it?
OC Language (OBJECTIVE-C) first article