package class9_3_VehicleFunctions_start;// Dr. Yoder. MSOE. 08 December 2016 public class Boat extends Vehicle { public Boat(double metersNorth) { super(metersNorth); } public Boat(double metersNorth, double metersNorthPerSec) { super(metersNorth,metersNorthPerSec); } @Override public void step() { super.step(); // this.toString(); swimFloat(); } /** * Describe the car and its location * @return a string representation of the object. */ @Override public String toString() { return "A boat at "+getNorthMeters()+" meters north"; } public void swimFloat(){ System.out.println("I'm floating!"); } @Override public boolean equals(Object object) { return (object instanceof Boat) && super.equals(object); } }