Programming language Concepts in C + +

Source: Internet
Author: User

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
    1. Class does not necessarily have an actual object
    2. The number of objects in the class is indeterminate, there are multiple, unique existence (Eg: Emperor)
    3. There is a relationship between classes and classes that are not independent of each other.
    4. Objects do not necessarily belong to a class
    5. 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 + +

Related Article

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.