12. Object-Oriented Programming: Polymorphism

Objectives

In this chapter you’ll:

• Learn how polymorphism makes programming more convenient and systems more extensible.

• Learn the distinction between abstract and concrete classes and how to create abstract classes.

• Use runtime type information (RTTI).

• Learn how C++ implements virtual functions and dynamic binding.

• Understand how virtual destructors ensure that all appropriate destructors run on an object.

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.