Question: ethods 4 . 1 . Default constructor set all instance variables to a default value. 4 . 2 . Parameterized constructor - Takes in all
ethods
Default constructor set all instance variables to a default value.
Parameterized constructor Takes in all parameters required to
set the instance variables including super classs instance variables.
Accessormutator methods.
Overriding methods:
moveSpaceShip s
Adds the flight hours of the SpaceShip s to the accumulated
flight hours of the crew member
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 nameKlaes Ashford, id currentBELT, position Captain,
pay $ flight hours
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
