Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help in Java: Now that you know about objects. You always think of real life object:s: You have seen car Dealership in street.
I need help in Java:
Now that you know about objects. You always think of real life object:s: You have seen car Dealership in street. What if you are ask to write java Program to do design Dealership class Think what dealership has, Cars, SalePersons, Manager and more objects. We are only concern for Car, SalesPerson, Manager and Dealership. Write a class for Car and have the following private fields or members make, price, year and vinNumber. Write a class for SalesPerson and have the following private fields or members First name, last name, Bonus, address, date of hiring. Write a class for Manager and have the following private fields or members: First name, last name, address, date of hiring. Write a class for Dealership and have the following private fields or members: Array of SalesPerson, Array of Car, and one Manager. Provide constructor and methods for all of above classes. You should have setters and getters, and method toString() that returns states of objects that is what it knows about object (example: First name, last... Dealership class should have methods addSalesPerson, removeSalesPerson, carSold, removeCar, addCar, and toString toString() should print state of Dealership: manager, SalesPersons, Cars, and number of car sold The Following show possible layout of Dearship classStep 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