12. Object-Oriented Programming: Polymorphism
The silence often of pure innocence Persuades when speaking fails.
—William Shakespeare
General propositions do not decide concrete cases.
—Oliver Wendell Holmes
A philosopher of imposing stature doesn’t think in a vacuum. Even his most abstract ideas are, to some extent, conditioned by what is or is not known in the time when he lives.
—Alfred North Whitehead
Objectives
In this chapter you’ll learn:
• How polymorphism makes programming more convenient and systems more extensible.
• The distinction between abstract and concrete classes and how to create abstract classes.
• To use runtime type information (RTTI).
• How C++ implements virtual
functions and dynamic binding.
• How virtual
destructors ...
Get C++ How to Program, Ninth Edition 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.