Travelable interface
Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
parent
35ce9ca754
commit
d4be36ebf8
@ -1,4 +1,4 @@
|
||||
public class Route {
|
||||
public class Route implements Travelable {
|
||||
|
||||
private Street[] streets;
|
||||
private District hotelArea;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class Street {
|
||||
public class Street implements Travelable {
|
||||
|
||||
private double length;
|
||||
private int numberOfLanes;
|
||||
|
3
src/Travelable.java
Normal file
3
src/Travelable.java
Normal file
@ -0,0 +1,3 @@
|
||||
public interface Travelable {
|
||||
String getFastestTimeOfTravel(Vehicle vehicle);
|
||||
}
|
Loading…
Reference in New Issue
Block a user