Question: /// C++ /// Class Assignment: Write the class LuxCar that inherits Car class. It should have a member variable called airCondSetting that is a positive

/// C++ ///

Class Assignment:

Write the class LuxCar that inherits Car class. It should have a member variable called airCondSetting that is a positive integer value in the range 0 to 100. It should have a display function that overrides the Car display function. The display function must display all the information that Car objects display in addition to airCondSetting value. You must call the display of the Car class inside the display of LuxCar. Show the constructor of LuxCar when the Car class has the only Constructor of:

Car(ints = 100, intt = 10); //constructor

Test LuxCar and Car in Main.

In addition:

Main program must create an array of pointer objects of type LuxCar and Car

Display all the Car and LuxCar using the Pointers.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!