Computer Science, asked by vikashagrawal003, 3 months ago

Create a class named "Car" having following additional properties:
 carId as integer
 price as integer
 model as string
 color as string
Apart from a parameterized constructor, also add the following methods to the Car class:
 public int getCarId()
 public int getPrice()
 public String getModel()
 public String getColor()
 public void getCarInfo()
Finally, create a Builder class to store the Cars objects in HashMap.
Make sure design a menu driven program with following options:
 Press 1 to Add a Car by entering a car Id, car Price, car model and car Color.
 Press 2 to View the details of a Car by entering a car Id
 Press 3 to View detail of all the cars including car Id, car Price, car model and car Color.
 Press 4 to Delete a car by entering a car Id
 Press 5 to Exit

Answers

Answered by illudada045
0

Answer:

hijidhrjejjrjriiisood

Similar questions