1. Ship: 1. Create an interface ShipInterface for the Ship classlisting all method definitions.
2. Design a Ship class (base class) with: · A field for the nameof the ship (a string).
· A field for the year that the ship was built (a string).
· Default and parameterized constructors and appropriateaccessors and mutators.
· A toString method that displays the ship’s name and the yearit was built.
2. CruiseShip: 1.Create an interface for the CruiseShip class,CruiseShipInterface which extends the ShipInterface.
· List all method definitions.
2. Implement the CruiseShipInterface in the CruiseShip classthat extends the Ship class. The CruiseShip class should have thefollowing:
· A field for
PayPal Gateway not configured
PayPal Gateway not configured