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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started