Question: Write a program that simulates a car dealership. It will consist of two classes: Car and CarDealership. Car Class(UML): - color. String - make: String

Write a program that simulates a car dealership. It will consist of two classes: Car and CarDealership. Car Class(UML): - color. String - make: String - model: String - msrp: double +Car() + Car(color: String, make: String, model: String, msrp: double) + getColor() : String + setColor(color : String ) : void + getMake() : String + setMake(make: String ) : void + getModel () : String + setModel(model: String ) : void + getMsrp () : double + setMsrp(msrp: double) : void + toString () : String The Car class will have four attributes/instance variables/fields and 11 methods. CarDealership Class (Driver): (Lot) and another Car object should be put in its place. COPY/PASTE THE CODE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
