Question: undefined Employee.java Worker.java Manager.java Executive.java package inheritanceemployee; Inheritance - employees Hint: you can use super(parameters) to call the constructor of a superclass. You can use

undefined Employee.java Worker.java Manager.java Executive.java package inheritanceemployee; Inheritance - employees Hint: youcan use super(parameters) to call the constructor of a superclass. You canuse super.methodname() to call a method in a superclass. In Employee.java: Createa public abstract class called Employee. Create class variables 'name' and 'wage'.Implement a constructor public Employee(String name, double wage) which initilises name andundefined

Employee.java Worker.java Manager.java Executive.java package inheritanceemployee; Inheritance - employees Hint: you can use super(parameters) to call the constructor of a superclass. You can use super.methodname() to call a method in a superclass. In Employee.java: Create a public abstract class called Employee. Create class variables 'name' and 'wage'. Implement a constructor public Employee(String name, double wage) which initilises name and wage. Implement accessor methods public String getName() and public double getWage(). Employee.java Worker.java Manager.java Executive.java package inheritanceemployee; Create Class VITODIES Tale al wage. Implement a constructor public Employee(String name, double wage) which initilises name and wage. Implement accessor methods public String getName() and public double getWage(). In Worker.java: Create a public class Worker which extends Employee. Create class variable 'manager'. Implement a constructor public Worker(String name, double wage, Manager manager) which initilises name, wage, manager. You will need to access the constructor in the Employee class. Implement accessor method public Manager getManager(). Employee.java Worker.java Manager.java Executive.java 1 package inheritanceemployee; Create class variable 'manager'. 3 import java.util.ArrayList; 5 Implement a constructor public Worker(String name, double wage, Manager manager) which initilises name, wage, manager. You will need to access the constructor in the Employee class. Implement accessor method public Manager getManager(). In Manager.java: Create a public class Manager which extends Employee. Create class variable 'supervises', which is type ArrayList. Implement a constructor public Manager(String name, double wage) which initilises name, wage, and sets 'supervises' to an empty ArrayList. You will need to access the constructor in the Employee class. Implement public void addSupervisedEmployee Worker employee) which adds the employee to the 'supervises' ArrayList. Implement accessor method public ArrayList getSupervises(). Employee.java Worker.java Manager.java Executive.java 1 package inheritanceemployee; 2 3 In Executive.java: Create a public class Executive which extends Employee. Create class variable 'annualBonus! Implement a constructor public Executive (String name, double wage, double annualBonus) which initilises name, wage, bonus. You will need to access the constructor in the Employee class. Implement accessor method public double getAnnualBonus(). Implement and override) public double getWage() which calculates the fortnightly wage. This is equal to the regular wage, plus 1/52 of the annual bonus. You will need to access the getWage() method in the Employee class. When calculating 1/52 you will need to to think about the data types and what the resulting data type will be

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