OOP, oops
OOP: a key concept of object-oriented technology that connects processes with data.
Changes the state of separating data from programs in traditional data.
Packaging programs and data together is called encapsulation.
The definition and initial value of a class can be used to create an instance (object) of the class ).
OOP provides methods to construct classes at the top layer of other objects: Synthesis and inheritance.
Merging allows existing objects to be used as a component to build other objects.
Inheritance allows a similar or related object (derived object) to come from another object (base object ).
Derived class: single inheritance and multi-inheritance.
The overload operator and function are divided into multiple meanings.
Polymorphism refers to the ability to work with different objects in the same process.
(It allows the creation process of different but related objects to be compatible with a group of operations. If a problem-solving program only uses these operations, it should work for all such objects)
The C ++ class defines an object by encapsulating the number of function members of a data member. The member can be a private, protected, or common type.
A derived class is a mechanism used by the C ++ language for inheritance. It supports the relationship between types and code reuse.
The virtual function mechanism supports polymorphism and allows you to define interchangeable objects under a unified external interface.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.