Copyright © 2016, 2022
Robert W. Hasker

Note 8: C++ with Class

Ch. 10 of textbook

Classes in C++

Concrete Types

Arrays and Classes

Inheritance, virtual methods

Pointers and Classes

Abstract classes

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

Container

Using Abstract Classes

Pass-by-reference and Containers

Review