Question: GeneralStaff: extends Employee duty: String GeneralStaff ( ) / / duty = GeneralStaff ( String duty ) GeneralStaff ( String deptName, String duty ) GeneralStaff

GeneralStaff: extends Employee
duty: String
GeneralStaff()// duty =
GeneralStaff(String duty)
GeneralStaff(String deptName, String duty)
GeneralStaff(String name, int birthYear, String deptName, String duty)
getDuty(): String
equals(Object obj): boolean //all attributes inherited+local must match for 2 Staff objects to be considered equal
toString(): String // GeneralStaff: Duty: %10s, duty
Note: do not override the inherited compareTo from the Employee class (use as is)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The question appears to be incomplete It provides inf... View full answer

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 Databases Questions!