11 Object-Oriented Programming: Inheritance

Objectives

In this chapter you’ll:

  • Learn what inheritance is.

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

  • Use the protected member access specifier.

  • Use constructors and destructors in inheritance hierarchies.

  • Understand 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++ How to Program, 10/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.