Introduction to OOP: Chapter 9: Mechanisms for Software Reuse
Two Approaches to Software Reuse
There are two primary mechanisms for software reuse in OOP.
inheritance - the is-a relationship
composition - the has-a relationship
Intro OOP, Chapter 9, Slide 4
If I was writing this chapter today I would probably also talk about
generic, or templates in C++. However, this chapter was written
before templates were widely available.