Composition: Car holds an Engine and delegates
Composition: Car holds an Engine and delegates
Answer
class Car { private final Engine engine = new Engine(); void drive() { engine.start(); } }
`Car` has-an `Engine`. It owns the reference and forwards `drive()` to the engine's `start()` — delegation, not inheritance.