Question
Code in Java please! Define ONE class CarDealership for the system with required member variables, appropriate constructors (more than one), appropriate methods (along with getters
Code in Java please!
Define ONE class CarDealership for the system with required member variables, appropriate constructors (more than one), appropriate methods (along with getters and setters) with proper argument list. Define additional classes as needed. Each method should have a brief comment describing its responsibilities. Note: You only need to provide header comment and psuedocode in each method and no implementation is needed. Implement main method to test all components of this system (i.e., write Java Code that instantiates the CarDealership (and other objects as needed) and calls the appropriate methods to test different capabilities like adding a car to dealership or selling a car to a customer, getting customer information for a given vehicle, and others as needed.
Design a class CarDealership that simulates a typical dealership system that you find in your city/town. To keep things simple, let focus on a simplified version of the system that has the following: a number of cars (of different make/model, condition - new or old, and with different prices). Car can be added to inventory or could be sold. Each car has a unique identifier. It would be appropriate to have Car class. a list of customers who have purchased cars in the past. Dealership stores customer's name, city, date of sale, sale price of the vehicle and vehicle identifier. It would be appropriate to create a Customer 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