Question: C++ Programming: Create a class structured hierarchy of a car rental company a) Implement the class CarRental. The company rents out 2 types of cars,
C++ Programming:

Create a class structured hierarchy of "a car rental company" a) Implement the class CarRental. The company rents out 2 types of cars, standard" and "luxury cars". b) The car class is identified by: - An identification number (int) A Type of car (string) - A flag that indicates if car is available Two types of customers can rent out from the car rental company. A "regular" customer and a "corporate customer". c) The class customer is identified by: -Number (int) -Name (string) -Address (string) Telephone number (string) d) A class Corporate customer has the following Additional attributes: The name (string) of the customer's company -The address (string) of the customer's company A regular customer can only rent standard cards for 20 days. While corporate customers can rent all types for 35 days. The Car rental company should be able to add a new car to inventory and remove them from the inventory. As well as registering new customers and removing them from the customer list". (Create a driver to test) Create a class structured hierarchy of "a car rental company" a) Implement the class CarRental. The company rents out 2 types of cars, standard" and "luxury cars". b) The car class is identified by: - An identification number (int) A Type of car (string) - A flag that indicates if car is available Two types of customers can rent out from the car rental company. A "regular" customer and a "corporate customer". c) The class customer is identified by: -Number (int) -Name (string) -Address (string) Telephone number (string) d) A class Corporate customer has the following Additional attributes: The name (string) of the customer's company -The address (string) of the customer's company A regular customer can only rent standard cards for 20 days. While corporate customers can rent all types for 35 days. The Car rental company should be able to add a new car to inventory and remove them from the inventory. As well as registering new customers and removing them from the customer list". (Create a driver to test)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
