Practice · 1 of 2
Car Has-An Engine
CHALLENGE
Difficulty: intermediate+25 XP
Given the Engine class, create Car(engine) that stores the engine and delegates start() to it. Do NOT inherit — compose.
Press Submit to check your solution.
Back to lesson: Practice: Composition Drills