Question: JAVA PROGRAM Write a class Employee which inherits from Person class. In Employee class add a number of hours per week worked and pay rate

JAVA PROGRAM

Write a class Employee which inherits from Person class. In Employee class add a number of hours per week worked and pay rate as private data members. Write constructors for employee class. Invoke the parent's constructors in Employee class. Add a new method to calculate the weekly pay amount in Employee class. Create an employee object. You can use a constructor to initialize the private data members. Then print employee information(name,age,SSN,....) from Person class and include the weekly pay from Employee class. You only need one driver for this assignment

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!