Question: ethods 4 . 1 . Default constructor set all instance variables to a default value. 4 . 2 . Parameterized constructor - Takes in all

ethods
4.1. Default constructor set all instance variables to a default value.
4.2. Parameterized constructor - Takes in all parameters required to
set the instance variables including super classs instance variables.
4.3. Accessor/mutator methods.
4.4. Overriding methods:
4.4.1. move(SpaceShip s)
Adds the flight hours of the SpaceShip s to the accumulated
flight hours of the crew member
4.4.2. toString()
Overwrites the super class method as needed to return a nicely
formatted String (see below) that represents the state of the
object (the value of the instance variables)
Crew [name=Klaes Ashford, id=3, current=BELT, position = Captain,
pay = $234.00, flight hours =6728]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!