Create three class names VEHICLE, TWO WHEELER, SCOOTER as shown below and create the data members and member function. Create a base class “vehicle” and declare the variable reg_no as string and model as integer. Create a function read()inside the class to read data for the variables. Create a derived class”two-wheeler” and declare the variable no_gear,power as integer.Create another deriver class”scooter” and declare variable manufacturer,owner as string.Create a function read()to get the data for no_gear.Create another function print that prints the values of reg_no, model, power, no_gear
Answers
Answered by
0
Addition of two number
Similar questions
Accountancy,
2 months ago
History,
2 months ago
Math,
2 months ago
Social Sciences,
4 months ago
Chemistry,
4 months ago
Economy,
9 months ago
India Languages,
9 months ago