Define a class named Employee whose objects are records for employees. Derive this class from theclass Person given in Listing 8.1. An employee record inherits an employee’s name from theclass Person. In addition, an employee record contains an annual salary represented as a single value oftype double, a hire date that gives the year hired as a single value of type int, and an identificationnumber that is a value of type String. Give your class a reasonable complement of constructors, accessormethods, and mutator methods, as well as an equals method. Write a program to fully test your classdefinition.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here