In traditional way, there are three classes: TRUCK (number, name , NoOfWheel, Price, Capacity, EnginePower, TypeOfConsump), BUS (number, name , NoOfWheel, Price, NoOfSeat, EnginePower, TypeOfConsump, Color, Speed), CAR (number, name , NoOfWheel, Price, NoOfSeat, EnginePower, TypeOfConsump, Color, Speed). Divide the above three classes into two base classes and three derived classes. Each class will contain two member functions, getdata() to get that class data from user and putdata() to display that class data on the screen.
Answers
Answered by
0
Answer:
blahblahblah
Explanation:
blah
Answered by
0
Answer:
qwerty
Explanation:
qwerty
Similar questions