Chapter 23. Inheritance in Detail
This chapter formalizes and details some of the concepts introduced earlier in Chapter 6. We explain how constructors, destructors, and copy assignment operators are generated and used by derived classes. We discuss how the keywords public
, private
, and protected
can be used for base classes as well as class members. We also provide examples of multiple inheritance.
Virtual Pointers and Virtual Tables | ||
Polymorphism and virtual Destructors | ||
Multiple Inheritance | ||
public, protected, and private Derivation |
Virtual Pointers and Virtual Tables
Each class that contains methods (virtual
functions) has a virtual jump table, or vtable, which is generated as part of the “lightweight” C++ execution environment. ...
Get An Introduction to Design Patterns in C++ with Qt 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.