Inheritance for Classes
As already explained in Chapter 9, object—oriented programming is mainly characterized by encapsulation, dynamic binding, and inheritance. The classes introduced in Chapter 11 showed implementations of ADT’s and serve for the realization of encapsulation. In this chapter we give a detailed description of the fundamental and powerful principles of inheritance and their implementation in C++. We introduce the concepts for both simple and multiple inheritance. With the use of inheritance, the real world dependency structure of objects can be mapped into a C++ class hierarchy in a natural manner.
Unable to display preview. Download preview PDF.