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.