package class5_3_HalfExam2_Problem1Speakers_start;// Dr. Yoder. MSOE. 20 March 2017 public abstract class Vehicle { public static final int DEFAULT_NORTH_METERS_PER_SEC = 4; /** The car's position */ private double northMeters; public Vehicle() { this.northMeters = 0; } /** * Step forward the simulation by one second. */ public void step() { northMeters += DEFAULT_NORTH_METERS_PER_SEC; } /** * Describe the car and its location * Child classes can use finishDescription() for the standard stuff. * @return a string representation of the object. */ public abstract String toString(); /* * @return a string, not starting with space, which starts * "at ..." and which describes the car and its positoin */ protected String finishDescription() { return "at "+northMeters+" meters north"; } }