Question: need help on c++ program please. 1. derived new derived o based on the Auto class. Each class will have its own classes separate h

need help on c++ program please.

need help on c++ program please. 1. derived new derived o based

on the Auto class. Each class will have its own classes separate

h" and ".cpp" file. The Auto class files are on the assignment

page 2. One of the new autos will be for some type

1. derived new derived o based on the Auto class. Each class will have its own classes separate h" and ".cpp" file. The Auto class files are on the assignment page 2. One of the new autos will be for some type of sport utility vehicles (SUV). You need to figure out how that would be different from Auto and what needs to be added. 3. One of the new autos will be some type of van (delivery, mini, passenger, etc.), you pick. You need to figure out how that is different from Auto and what needs to be added (a) Give the new classes appropriate names, NOT SUV or van (b) The new classes will have at least one component (private member variable that is completely different from the base class. It must represent something that only the new object has (c) You will include accessor functions for every new component in the derived class. Remember that we use accessor functions to control the way the pro- grammer (user) accesses the data of our class. We can provide these public functions to get or set the value of private class members. d) The derived class constructor will either have default parameter values, so it can be created like derived className myobj or you have to have two constructors, one with no parameters and one with parameters. Use whichever makes best sense to you. The constructor will make an explicit call to the base class parameterized constructor. The constructors will NOT print out any information (when you turn them in) and will NEVER use cin. (See note on next page Note: To make an explicit call to the base class constructor, you treat it like an initialization list item. For instance, if I have class X that is derived from Auto then the class X constructor can call the Auto constructor like X: :X (const char* mk, const char* ml, int d int r) Auto (mk,ml ,d) rest of constructor (e) You will not alter the Auto class or its functions

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!