Chapter 22.  Inheritance in Detail

Table of Contents

22.1. virtual Pointers, virtual Tables
22.2. Polymorphism and virtual Destructors
22.3. Multiple Inheritance
22.3.1. Multiple Inheritance Syntax
22.3.2. Multiple Inheritance with QObject
22.3.3. Resolving Multiple Inheritance Conflicts
22.3.3.1. virtual Inheritance
22.3.3.2. virtual Base Classes
22.4. public, protected, and private derivation
22.5. Review Questions

[ fromfile: inheritance-detail.xml id: inheritance-detail ]

Abstract

This chapter formalizes and details some of the concepts introduced earlier in Chapter 6, "Inheritance and Polymorphism." 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 and members. We also provide examples of multiple inheritance.