OOP, oops

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.