Homework Help Question & Answers
Define a class named Employee . Derive this class from the class Person. An employee record…
Define a class named Employee . Derive this class from the class Person. An employee record inherits an employee’s name from the class Person. In addition, an employee record contains an annual salary (represented by a single value of type double), a hire date that gives the year hired (as a single value of type int), an identification number of type int, and a department of type String. Give your class a reasonable complement of constructors, accessors, mutators, an equals method and a WriteOutput method. Two employees are equal if their IDs are equal. Write a main method to FULLY test your class definition.
THEN upload ONLY your Person.java and Employee.java file to Canvas.
Constructors (one default, one with all info)
Accessors (salary, hireDate, ID, department)
Mutators(salary,hireDtae, ID, department)