public interface Car
Write a description of interface Car here.
Method Summary | |
---|---|
int |
load(int cargo)
Loads the amount of a cargo/persons |
void |
refuel(int fuelAmount)
Refuels the car |
void |
run(int distance)
Runs the distance suplied as a parameter |
int |
unload(int cargo)
Unloads the amount of cargo/persons, if available, else fully unloads the car. |
Method Detail |
---|
int load(int cargo)
cargo
- amount of a cargo/persons
void refuel(int fuelAmount)
fuelLoad
- the amount of fuel to be refueledvoid run(int distance)
distance
- distance to be ranint unload(int cargo)
cargo
- amount of a cargo/persons