Copyright © 2016-2024
Robert W. Hasker

Note 9: Inheritance

A Review of Types in Programming Languages

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