Question: (C++ Program) (Car Class) Create a class called Car that includes four pieces of information as data membersthe make of car (type string), the model

(C++ Program)

(Car Class) Create a class called Car that includes four pieces of information as data membersthe make of car (type string), the model of car (type string), the vehicle identification number of car (type string) and a year of manufacture (type int). Your class should have a constructor that initializes the four data members. Provide a set and a get function for each data member. If the year is not positive, set it to 1990. Write a test program (in a file outside the class file) that demonstrates class Cars capabilities. Create three Car objects and display each objects year of manufacture.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!