Lesson 15: Composition vs inheritance
A car has an engine — but it isn't a kind of engine. For "has-a" relations there's a second tool, surprisingly simple: store one object as another object's attribute. That's composition — and choosing between it and inheritance is one of design's key decisions.