can you help me to solve 7th step of this question
- Create a Vehicle interface.
- All data members should be declared as private.
- Make the following data members in Vehicle -
- int engine - Holds Engine CC
- int doors - Holds data for number of doors
- int capacity - Hold data for passenger capacity
- Vehicle should have some public functions as listed
Public Functions -
- Getter/Setter for all the above data members.
- StartVehicle - should display "starting vehicle of type - XXXXX".
StopVehicle - should display "stopping vehicle of type - XXXXX"
(replace XXXX above with the vehicle types, see below)
Create 3 classes that implement this Vehicle interface.
- Inside main(), create an object of all 3 vehicle types using pointer of interface class and new keyword.
- Start/Stop all the vehicles.
- Show starting and stopping messages for each vehicle type correctly with the vehicle names.