- Polymorphism
- "Program in the general"
- Treat objects in same class hierarchy as if all base class
- Virtual functions and dynamic binding; will explain how polymorphism works
- Makes programs extensible; new classes added easily, can still be processed
- In our examples
- Use abstract base class Shape
- Defines common interface (functionality)
- Point, Circle and Cylinder inherit from Shape
- Class Employee for a natural example
2004-07-29