fix bug: needService method type should have been boolean
This commit is contained in:
@@ -37,7 +37,7 @@ public abstract class Car extends Vehicle implements Serviceable {
|
||||
// TODO: Override showDetails()
|
||||
// Print brand, model, year, mileage, and number of seats
|
||||
|
||||
public Boolean needService(Vehicle v) {
|
||||
public boolean needService(Vehicle v) {
|
||||
return v.getMileage() > 10000;
|
||||
}
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user