11. Object-Oriented Programming: Inheritance

Objectives

In this chapter you’ll:

• Learn qhat inheritance is and how it promotes software reuse.

• Understand the notions of base classes and derived classes and the relationships between them.

• Use the protected member access specifier.

• Understand the use of constructors and destructors in inheritance hierarchies.

• Learn the order in which constructors and destructors are called in inheritance hierarchies.

• Understand the differences between public, protected and private inheritance.

• Use inheritance to customize existing software.

Get C++11 for Programmers, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.