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

Inheritance

In C++ one class may be derived from another. The derived class inherits all the member variables and the member functions of the base class or classes. In addition, inherited member functions can be overridden in the derived class and new member variables and functions can be defined. You should understand how the compiler determines the code to execute when a particular member function is called.


next up previous contents index

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