Question: . Make a class Person, with instance variable name, age, and gender. Make a class Employee inherit from Person, with extra data for salary, and

. Make a class Person, with instance variable name, age, and gender. Make a class Employee inherit from Person, with extra data for salary, and hiring date. Make another class Student inherit from Person, with data for program name, level (undergraduate/graduate), and program year. Supply required methods for the superclass and the subclasses. Make a subclass Manager from Employee, with bonus salary, and override the corresponding method(s). Supply appropriate toString methods for Person class. Then, override this method in Employee and Manager classes, such that it concatenates (Employee) and (Manager) to the end of the corresponding output. Override equals method for Person class by checking the name and age of the corresponding objects.

In java language please. Also make sure youre following whatever its asked! Thank you!

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!