Deep Exploration C ++ Object Model (1)

Source: Internet
Author: User

01. For a better understanding of the C ++ programming language;

02. To better understand the object-oriented thinking;

03. If programmers understand the C ++ object model, they can write code that is less prone to errors and more efficient;

//--------------------------------------------------------------------------------

I. Preface

00. Gossip:

> There is a problem, that is, reading from the preface is preferred;

> Managing a software team is like grazing a group of proud cats. ------ Barbara moo

> If programmers understand the C ++ object model, they can write code that is less prone to errors and more efficient.

> If a programmer understands the underlying implementation model, he can write highly efficient code with high self-confidence.

> Finding a balance between abstraction and practicality requires knowledge, experience, and many ideas.

02. What is the c ++ object model:

> There are two concepts to explain the C ++ object model:

A. Part of the language that directly supports object-oriented programming; (C ++ primer)

B. Underlying implementation mechanisms supported by various products (this book)

> Currently, all compilers use the exclusive virtual table of each class for the implementation of virtual functions, with a fixed size, and are constructed long before the program is executed.

 

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.