JAVA-16301: Check Article Code Matches GitHub

This commit is contained in:
freelansam 2022-12-02 18:53:08 +05:30
parent 998415cd47
commit 290581f15b
3 changed files with 15 additions and 0 deletions

View File

@ -22,4 +22,9 @@ public class Car implements Vehicle {
public String slowDown() {
return "The car is slowing down.";
}
@Override
public double getSpeed() {
return 0;
}
}

View File

@ -22,4 +22,9 @@ public class Motorbike implements Vehicle {
public String slowDown() {
return "The motorbike is slowing down.";
}
@Override
public double getSpeed() {
return 0;
}
}

View File

@ -32,4 +32,9 @@ public class MultiAlarmCar implements Vehicle, Alarm {
public String turnAlarmOff() {
return Vehicle.super.turnAlarmOff() + " " + Alarm.super.turnAlarmOff();
}
@Override
public double getSpeed() {
return 0;
}
}