Question: Lab 1 Assignment: Employee class coding Due Thursday, Feb. 7 Add another class in package firstProgram, Employee class. It is also a subclass of Person.
Lab 1 Assignment: Employee class coding Due Thursday, Feb. 7 Add another class in package firstProgram, Employee class. It is also a subclass of Person. It has two additional private fields: hired that is of Date type, salary that is of int type Constructor: Only the two-parameter constructor for given name and hired date. Other methods: Two additional getters (for salary and hired), one setter for salary Override equals based on both name and hired value. Override toString methods, it is the method for Person plus additional employee information. Submit screenshot if the file compiles correctly. Otherwise, submit plain text source file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
