Chapter Summary


  1. Inheritance can be used to organize classes into hierarchies.
  2. Polymorphic variables are very powerful. Declared as one type, its static type, but can maintain a value of a different type, its dynamic type. Must be pointers or references.
  3. When a virtual method is called using a polymorphic variable, its dynamic type is used.
  4. A virtual method that is declared but not defined is called a pure virtual method. A class with a pure virtual method can not be instantiated. It is called an abstract class.

prev |top |next