Question: I have to write a c++ program using classes and arrays 2. (25 marks) We want to create a class called Car, which represents cars

I have to write a c++ program using classes and arrays 2.I have to write a c++ program using classes and arrays

2. (25 marks) We want to create a class called Car, which represents cars of a car rental company. A Car is defined with the following attributes: id (int), brand (string), type(stirng). The member functions of the class Car must perform the following operations: Return the car id Return the car brand Return the car type . e Test your class by prompting the user to enter information about two cars. Create two objects of the class Car with the information entered by the user, and finally, test the member functions of the class Deliverables: .A file called car.h that contains the specification of the class. A file called car.cpp that contains the implementation of the member functions of the class. A file called testcar.cpp that contains the main function

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!