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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started