JAVA-16301: Check Article Code Matches GitHub
This commit is contained in:
parent
998415cd47
commit
290581f15b
@ -22,4 +22,9 @@ public class Car implements Vehicle {
|
|||||||
public String slowDown() {
|
public String slowDown() {
|
||||||
return "The car is slowing down.";
|
return "The car is slowing down.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public double getSpeed() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
@ -22,4 +22,9 @@ public class Motorbike implements Vehicle {
|
|||||||
public String slowDown() {
|
public String slowDown() {
|
||||||
return "The motorbike is slowing down.";
|
return "The motorbike is slowing down.";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public double getSpeed() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
@ -32,4 +32,9 @@ public class MultiAlarmCar implements Vehicle, Alarm {
|
|||||||
public String turnAlarmOff() {
|
public String turnAlarmOff() {
|
||||||
return Vehicle.super.turnAlarmOff() + " " + Alarm.super.turnAlarmOff();
|
return Vehicle.super.turnAlarmOff() + " " + Alarm.super.turnAlarmOff();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public double getSpeed() {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user