Computer Science, asked by konavenkatajahnavi, 4 months ago

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 rohitkumar2241
0

Addition of two number

Similar questions