1. Added package layout access cost (layout Costs for Adding encapsulation)
virtual function mechanism: used to support efficient execution-time binding
Virtual base class mechanism: implementation avoids duplicate inheritance in inheritance.
2. The C + + Object Model
Pointer-to-member: Avoids the need for different types of member, the member of the object is addressed by the index value of the slot
Data member Table:
member function table:
Virtual table (VTBL): Each object has a pointer (vprt) to vtbl,vptr setting, resetting is automatically completed by the Constuctor, Destuctor, and copy assignment operators of the class. The Type_info object associated with the class (which supports dynamic binding) is also indicated by VTBL and is usually placed at the first slot of the table.
3. A Keyword Distinction
4. An Object distinction
Inside the C + + Object Model | Object Lessons