Objectives of This Chapter

By the end of this chapter, you should

  1. Understand how we can use polymorphism to allow objects of different classes to be treated interchangeably by the user of these classes,

  2. Understand how to create a polymorphic object that allows polymorphism to be used safely in application programs without exposing the class user to the hazards of pointers, and

  3. Understand how to use reference counting to allow one data item to be safely shared among several users.

Get Learning to Program in C++ 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.