Question: Q-(7pts)write the necessary code to create a class called car ( !!!!) with following members: - car_type is a string - car_price is integer -
Q-(7pts)write the necessary code to create a class called car
( !!!!)
with following members:
- car_type is a string
- car_price is integer
- sub carAss to assign values for the class variables (values are read in main and sent to the sub carAss).
- sub to create a destructor for an object.
- sub to print the values of the class variables.
then
define 3 objects of type library.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
