✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
class Engine {start() { return 'Engine started'; }
}
class Car {
constructor() {
this.engine = new Engine();
}
drive() {
return this.engine.start() + ' - driving';
}
}
const car = new Car();
console.log(car.drive());