Java A car dealership wants to have a system to keep the records of all its cars. We already had some experience creating a class for Car. Use what you learned to create a class Car, with some required information, such as make, model, year, transmission, seats, maximum speed, wheels, type (sedan, SUV, Crossover, …), etc. This dealership needs to keep the information of all its cars. Therefore, we should create a class Dealership, with some profile information such as name, location, managers, employees, etc. It also should be able to keep the information of all its cars. Your tasks are creating a class for Car, a class for Dealership, and also a tester class to be able to create one or more dealerships, each of which have one or more cars. Note that the number of managers, employees, and cars of a dealership are not known in advance and therefore you should consider this fact in your class development.
Java
A car dealership wants to have a system to keep the records of all its cars. We already had some
experience creating a class for Car. Use what you learned to create a class Car, with some required
information, such as make, model, year, transmission, seats, maximum speed, wheels, type (sedan, SUV,
Crossover, …), etc. This dealership needs to keep the information of all its cars. Therefore, we should create
a class Dealership, with some profile information such as name, location, managers, employees, etc. It also
should be able to keep the information of all its cars.
Your tasks are creating a class for Car, a class for Dealership, and also a tester class to be able to create one
or more dealerships, each of which have one or more cars. Note that the number of managers, employees,
and cars of a dealership are not known in advance and therefore you should consider this fact in your class
development.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps