All academies
All challenges

Composition: Car has-a Engine

Composition

solution.ts
easy+45 XP

Implement `Engine.start(): string` returning `'vroom'` and `Car` that takes Engine in the constructor and delegates `start()`.

Judge

Press Run tests to execute your solution in the sandbox judge.