Skip to main content

Chapter 19 Inheritance

So far we have looked at two ways to implement “has-a” relationships: composition and aggregation. In this chapter, we will examine a new kind of relationship between objects, “is-a”.
Is-a relationships in object-oriented programming are established through a technique called inheritance.