Copyright © 2016-2023
Robert W. Hasker

Note 9: Inheritance

Inheritance, virtual methods

More on Pointers and Classes

Abstract classes

    class AbstractContainer {
    public:
      virtual double& operator[](int index) = 0;
      virtual int size() = 0;
      virtual ~AbstractContainer() { }
    };  

How does C++ support inheritance?

Container

Using Abstract Classes

Pass-by-reference and Containers

Namespaces

Design principles for separate compilation

Review