Chapter 14. Object-Oriented Programming: Polymorphism

 

One Ring to rule the mall, One Ring to find them, One Ring to bring them all and in the darkness bind them.

 
 --John Ronald Reuel Tolkien
 

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:

  • What polymorphism is, how it makes programming more convenient and how it makes systems more extensible and maintainable.

  • To declare and use virtual functions ...

Get Visual C++ 2008: How to Program, Second 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.