Logo Data Structures and Algorithms with Object-Oriented Design Patterns in C++
next up previous contents index

Classes and Objects

A C++ class encapsulates a set of values and a set of operations. The values are represented by the member variables of the class and the operations by the member functions of the class. In C++ a class definition introduces a new type. The instances of a class type are called objects. You should understand the special rôle of the constructor and the destructor member functions of a class and, in particular, you should know when the C++ compiler invokes each of them.


next up previous contents index

Bruno Copyright © 1997 by Bruno R. Preiss, P.Eng. All rights reserved.