Introduction to OOP
Chapter 14: Polymorphism and Software Reuse:
Two Approaches to Software Reuse
One of the major goals of OOP is software reuse. We can illustrate this by considering two different approaches to reuse:
Inheritance -- the
Composition -- the
We do this by considering an example problem that could use either mechanism.
, Slide 04