Fix needsService logic after debugging
This commit is contained in:
@@ -70,7 +70,7 @@ public class GasCar extends Car implements Refuelable {
|
||||
|
||||
@Override
|
||||
public boolean needsService(Vehicle v) {
|
||||
return v.getMileage() > 10000 || fuelLevel < 100;
|
||||
return super.needsService(v);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user