Question: For Manager.java 1. Modify the Manager class so that inherits all protected and public items from Employee. Hint: Manager is-A Employee 2. Manager objects should

For Manager.java 1. Modify the Manager class so that inherits all protected and public items from Employee. Hint: Manager is-A Employee 2. Manager objects should have additional fields: numSubordinates, and branchLocation. 3. Create a default Manager constructor that initializes branchLocation to "Athens, GA" and numSubordinates to 10. 4. Create accessor and mutator methods for numSubordinates and branchLocation variables (follow naming conventions to receive credit). 5. Override the Employee class's print method in the Manager class. Your print method should call the Employee classes print method and print the other Manager attributes as follows: Employee ID: 0 Name: Bob Jones Salary: $50000.0 Branch Location: Athens, GA Number of Subordinates: 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
