Challenge 1: Cars and Engines!
In this exercise, you have to perform a composition between a sedan car class and its engine.
We'll cover the following...
We'll cover the following...
Problem statement
You have to implement a Sedan class, which inherits from the Car class and contains a SedanEngine object.
Note: In such a composition relation, the
Sedanclass will be responsible forSedanEnginelifetime.
Consider this diagram for reference:
Task 1
- 
The Carinitializer should take arguments ...