Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started