Main steps
Select: Constructors from superclass, Inherited abstract methods and press Finish
Or, if you have not done it in class creation wizard: Select Source — Generate Constructors from Superclass..., select both constructors Road() and Road(String,String,int) and press OK.
Override move(Road) to return String in form:
ID Ship is sailing on (Road as String) with x sails
where:
return Cannot sail on (Road as String) if it is not WaterRoad.
Override method move(Road) for vehicle, which returns String in form:
ID Vehicle is driving on (Road as String) with x wheels
where:
return Cannot drive on (Road as String) if it is not Road.