Course Solutions Uncategorized (Solved) : C Create Base Class Transit System Called Automobile Automobile Derived Classes Bicycle Tr Q32707693 . . . .

(Solved) : C Create Base Class Transit System Called Automobile Automobile Derived Classes Bicycle Tr Q32707693 . . . .

 

IN C++

Create a base class for transit system, called Automobile.Automobile has derived classes which is bicycle and Train.Both usea base class access spec of protected.

Automobile memb:

protected:

Automobile ID (str) manufacturer (str)capacity (int) status(char)

public:

constructor takes in Automobile ID, manufacture, capacity,

status virtual “display information on automobile” function

virtual destructor

Bicycle members:

Private

mileage (int) tire size (str) fuel type (str)

public: constructor intakes mileage, tire size,and fuel type, in addition to the 4 parameters for automobile

virtual “display information on bicycle-type automobile”function.

virtual destructor

Train members:

Private members:

power on time in hrs (int) motor type (str) next wheelinspection date (str)

Public members:

constructor taking hrs, motor type and wheel date, in additionto the four

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Answered) : Structure Name Benzene Compounds Associated Alcohol Amine Acid Methyl Groups Name Structur Q28403221(Answered) : Structure Name Benzene Compounds Associated Alcohol Amine Acid Methyl Groups Name Structur Q28403221

<br/><img src="https://media.cheggcdn.com/media%2F2a5%2F2a53a60d-7120-4177-b6ec-dede97af6409%2Fimage" alt="the structure and name for the benzene compounds associated with an alcohol, amine, acid, and methyl groups. Name Structure Amine group Methyl group Acid group Alcohol group" aria-describedby="j1t"/>the