Objective-c Object-Oriented programming
Directory
- Understanding of object-oriented programming thought
- Declaration and definition of a class
- Instantiation of a class
- Inherited
- To write your own class library
Understanding of object-oriented programming thought
We tend to use process-oriented thinking to think, C language is a process-oriented language, as we get started programming language is very suitable, although the process-oriented language is more efficient, but it is more cumbersome to write a large program, at this time in order to solve this problem, We put forward the programming idea of object-oriented programming;
Three main features of object-oriented: encapsulation, inheritance, polymorphism
Encapsulates a set of objects with the same characteristics and behavior into a class
Declaration and definition of a class
Instantiation of a class
Inherited
To write your own class library
Objective-c Object-Oriented programming