Question: 3. Extend the Person class developed above and derive the following classes: Student, HourlyEmployee, and FulltimeEmployee. Determine an appropriate class inheritance hierarchy. These classes should
3. Extend the Person class developed above and derive the following classes: Student, HourlyEmployee, and FulltimeEmployee. Determine an appropriate class inheritance hierarchy. These classes should have following fields, necessary constructors, and appropriate access and modifier methods. For all employees: - Department Full- time employees: - Salary Hourly employees: - Hourly rate - Number of hours worked each week (4 weeks) Student: - Classes taken and grades for each class (Use an ArrayList) The employee class should contain the necessary methods that will print the total hours (four-week total), average hours per week worked by each employee, and the total wages during a four-week period. The student class should contain the necessary methods to print the transcript for each student. Write a Tester class to test your classel
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
