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
Math,
3 months ago
Computer Science,
3 months ago
Social Sciences,
3 months ago
Social Sciences,
7 months ago
Chemistry,
7 months ago
India Languages,
1 year ago