<< Depth Exploration C ++ Model >> Question (Chapter 1)

zhaozj2021-02-11  259

After reading a few more << Depth exploration C models >>, every time there is different gains. I have made some notes. This time, I want to read the problem in the form of a question, maybe there is a better effect. So I wrote these things. Some of these questions have a few words, but they need a few pages to explain. Every problem is followed by the answer in the << depth exploration C model >> page number. If there is any shortcomings, please add it.

Chapter 1: About Objects.

1. What is the main additional burden of C in the layout and access time? (P6)

2. Several Class Data MEMBERS and Several Class Member Functions? (P6)

3. How does C model support Virtual functions? (P9)

4. Main Advantages and Disadvantages of C Models? (P10)

5. How many inheritance types are supported by the C model? (P10-p11)

6. How does the C model handle his base class (including Virtual Base Class? (P12)

7. Struct and Class's differences? (P16-P19)

8. C use several methods to support polymorphism? (P25-p26)

9. How much memory needs a Class Object? (P27).

10. What is the real meaning of type conversion (CAST)? (29)

11. How to deal with the VPTR of DeriveD Class Object when assigning DeriveD Class Object to Base Class Object? (P32)

12. Why can I only support by a pointer or reference? (P33)

转载请注明原文地址:https://www.9cbs.com/read-4946.html

New Post(0)