Chapter 3-General support for abstraction and resource management
A class is a user-defined type provided to represent a concept in the code of a program. Three important kinds of classes are
1. Concrete classes
2. Abstract classes
3. Classes in class hierarchies
concrete classes: representation is part of its definition (complex
and Vector
)
A container is an object holding a collection of elements
RAII: Resource Acquision Is Initialization
Abstract type: a class with a pure virtual function
Polymorphic type: a class that provides the interface to a variety of other classes