Computer Science, asked by poojaglsbca20, 7 hours ago

Create a class named Vehicle with two data members named mileage and
price. Create its two subclasses Car with data members to store ownership
cost, warranty (by years), seating capacity and fuel type (diesel or petrol).
and Bike with data members to store the number of cylinders, number of
gears, cooling type(air, liquid or oil), wheel type(alloys or spokes) and
fuel tank size(in inches). 50
Make another two subclasses Audi and BMW of Car, each having a data
member to store the model type. Next, make two subclasses Bajaj and
Hero of Bike, each having a data member to store the make-type.
Now, store and print the information of an Audi and a BMW car (i.e.
model type, ownership cost, warranty, seating capacity, fuel type, mileage
and price.) Do the same for a Bajaj and a Hero bike.
Create a menu-driven program. Use the concept of virtual function.

Answers

Answered by luckysonawane999
0

Answer:

can't tell the answer

I'm sorry

Similar questions