Question: Requirements: 1. Engine class (Engine.h, Engine.cpp) 1) private ember variables: string engineType; 2) public member methods: constructor(s), getters, setters and others if any. 2. Car
Requirements: 1. Engine class (Engine.h, Engine.cpp)
1) private ember variables: string engineType;
2) public member methods: constructor(s), getters, setters and others if any.
2. Car class (Car.h, Car.cpp)
1) private member variables: string make; int yearMade; Engine engine;
2) public ember methods:
Default constructor, parameterized constructor, getters, setters and others if any.
3. SportsCar, inherits from Car class. class SportsCar : public Car
1) private member variables: int maxSpeed; string seatingLayout;
2) public member methods:
Default constructor, parameterized constructor, getters, setters and others if any.
4. main() (main.cpp)
Create a SportsCar object and check its member variables' values.
Please submit the following files for this assignment
(you may zip them up and submit one zip file or submit multiple files on Blackboard):
Car.h, Car.cpp, SportsCar.h, SportsCar.cpp, Engine.h, Engine.cpp, main.cpp
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
