ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 09 May 2017 My Price 8.00

Create a Ship class

Create a Ship class that has the following members:

- A field for the name of the ship ( name – String data type)

- A field for the year that the shop was built ( year – String data type)

- A constructor and appropriate gets (accessors) and sets (mutators)

- A method called toString that displays the ship ’ s name and the year it was built

Create a CruiseShip class that extends the Ship class. The CruiseShip class should have the following members:

- A field for the maximum number of passengers ( passe ngers – Integer data type)

- A constructor and appropriate gets (accessors) and sets (mutators)

- A method that overrides the toString method in the base class. The CruiseShip class’s toString method should display only the ship ’ s name and the maximum number of passengers the ship can carry.

Create a CargoShip class that extends the Ship class. The CargoShip class should have the following members:

- A field for the cargo capacity in tons ( tons – Integer data type)

- A constructor and appropriate gets (accessors) and sets (mutators)

- A method that overrides the toString method in the base class. The Cargo Ship class’s toString method should display only the ship ’ s name and the maximum number of ton s the ship can carry.

Answers

(11)
Status NEW Posted 09 May 2017 03:05 AM My Price 8.00

-----------

Not Rated(0)