Question: 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

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)

equals

WriteOutput

IN JAVA

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!