Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

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 class

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions