public abstract class Vehicle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
speed |
protected int |
time |
protected int |
x |
Constructor and Description |
---|
Vehicle() |
Modifier and Type | Method and Description |
---|---|
int |
accelerate(int t) |
abstract int |
move(int t) |
abstract int |
stop() |