1. Process oriented (C)
is a process-centric programming idea, for a practical way of thinking, analysis of the steps required to solve the problem, and then use the function of these steps to achieve the step-by-step, the process is clear and simple, suitable for small program size;
2. Object-oriented (c + +)
is an object as the core and the object as the design of the basic structure of the idea, the real life of the individual image mapping to the programming language, suitable for large-scale complex program size;
Class: is an abstract concept, refers to a kind of things, used to abstract describe a class of things unique properties and behavior;
Eg: PC PCs are a class that has CPU, memory and hard disks, with the ability to switch and run program properties.
Object: is a specific thing, refers to a specific instance of a class, has its own class described by all the attributes and behavior;
Eg: My Dell Inspiration N4010 is an object, notice here the N4010 is mine, is a real existence thing, therefore is the object;
In addition, here belong to my N4010 compared with other people's N4010, must have the weight and size differences, that is, the difference between individuals;
3. Understanding of Class and object Concepts
- Class does not necessarily have an actual object
- The number of objects in the class is indeterminate, there are multiple, unique existence (Eg: Emperor)
- There is a relationship between classes and classes that are not independent of each other.
- Objects do not necessarily belong to a class
- The object cannot be exactly the same as the object
2018.06. - 2018.06. 15
The concept of flow, namespace, etc. is a separate article;
Programming language Concepts in C + +