Page 1 of 1

Write a program in which you have to create a class that has variables to store Car data like; CarModel, CarName, CarPri

Posted: Fri May 20, 2022 12:13 pm
by answerhappygod
Write a program in which you have to create a class that has
variables to store Car data like; CarModel, CarName, CarPrice and
CarOwner. The program should include functions to assign user
defined values to the above-mentioned variable and a display
function to show the values. Write a main that
calls these functions.
Now write another
runner class that
declares three Car objects and displays the
data of all three.