d) The above classes are used to model a fleet of vehicles owned b a company. Co
ID: 645065 • Letter: D
Question
d) The above classes are used to model a fleet of vehicles owned b a company. Complete the method below that prints the cheapest weekly rate for the vehicles of the fleet that can be rented? In no vehicle can be rented, the method should state so. /** * Prints the cheapest weekly rate available among a fleet * of vehicles, or prints that no vehicle can be rented. * @pararn fleet the list of vehicles *1 public void printCheapestWeeklyRate (ArrayList fleet) { Consider the following classes Answer the following questions (must means so that the code compiles). a) Which methods must be implemented in the Car class? b) Which methods must be implemented in the FancyCar class? c) Which methods must be implemented in the Bus class?Explanation / Answer
for a we need to have Car() and FancyCar() methods
for b we need to have Vehicle()
for c we need to have Rentable()
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.