The introduction of object-oriented thinking in C language is a kind of mixed language, while supporting the structure programming and object-oriented programming method compatible with C language, can use the C language code without modification to allow data abstraction, support encapsulation, inheritance and polymorphism and other characteristics of the logical type is also called the Boolean type, Its value is true (logical true) and False (logical false) to enforce the type conversion format as follows: type (expression), for example: Int (num);(type) expression, for example: (int) num; statically allocating memory: fixed memory address and memory size determined at compile time. such as: local variables in the function, global variables, such as dynamic allocation of Memory: by the program control, the runtime initiative to the system to request the size of the memory segment, and each allocated to the memory address is not fixed C + + can be implemented using malloc, realloc, calloc and free functions, You can also use the operator new and delete implementations
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
The introduction of object-oriented thought in C language