Question: Implement a super class Person. Make two classes, Student and instructor, inherit from Person. A person has a name and a year of birth. A

Implement a super class Person. Make two classes, Student and instructor, inherit from Person. A person has a name and a year of birth. A student has a major and an instructor has a salary. Write the class definitions, the constructors, and the methods toString() and equals() for all classes. Supply a test program that test these classes and methods. In the test class, use your imaginations to create person objects, students objects and instructor objects. Print these objects and compare them. Please note that part of the output is shown below only

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!