It will need to have its own constructor the constructor


Write a CustomCar class that is derived from Car class and adds new features to it.The existing Car class will allow you to create a specific model of a car, but that car will always be the color black and have no features.You need to create a CustomCar class. Put the specification for it in the CustomCar.h file and the implementation for it in the CutomCar.cpp file. The CustomCar class should extend the Car class and have the following new features:

It will need to have its own constructor. The constructor should simply call the Car constructor and then set the private features variable to be empty. See the book for an example.

It will need a SetColor method. This method should simply set the Car's color. The Car's color is a Protected variable. This means that the derived class can change it.

It will need a SetFeatures method. This method should set the features in a private variable of the CustomCar class

It will need to have a PrintInfo method. This method should call the existing Car PrintInfo method, and then print the features info after that

It will need to have a private features variable to store the text of the features

Test 1 checks for the output of the Red color Work on getting this working first.

Test 2 checks for the output of the features. Work on getting this working nex

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: It will need to have its own constructor the constructor
Reference No:- TGS0662655

Expected delivery within 24 Hours