Course Solutions Uncategorized (Solved) : 1 Ship 1 Create Interface Shipinterface Ship Class Listing Method Definitions 2 Design Shi Q30486470 . . . .

(Solved) : 1 Ship 1 Create Interface Shipinterface Ship Class Listing Method Definitions 2 Design Shi Q30486470 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post