Copyright © 2016
Robert W. Hasker

Note 8: C++ with Class

Ch. 4 of textbook

Classes in C++

Concrete Types

Inheritance, Abstract Types

Memory allocation, deallocation

Abstract class

    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