O'Reilly logo

An Introduction to Design Patterns in C++ with Qt 4 by Paul Ezust, Alan Ezust

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

23.1

Virtual Pointers and Virtual Tables

524

23.2

Polymorphism and virtual Destructors

526

23.3

Multiple Inheritance

528

23.4

public, protected, and private Derivation

536

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required