fix bug: needService method type should have been boolean

This commit is contained in:
2026-04-27 20:03:23 +03:30
parent 86e0ce218a
commit 543ea063a7
+1 -1
View File
@@ -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;
}
/*