Added classes:
This commit is contained in:
parent
be384ebf76
commit
8c17a87105
15
src/Truck.java
Normal file
15
src/Truck.java
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
public class Truck extends CivilVehicle {
|
||||
|
||||
private final int TIME_TO_FIX = 20; //in minutes
|
||||
|
||||
public Truck(double vehicleSize){
|
||||
super(vehicleSize);
|
||||
}
|
||||
|
||||
public int getTimeToFix(){
|
||||
return TIME_TO_FIX;
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user