Implement a superclass Person. Make two classes, Student and Instructor, that 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 declarations, the constructors, and the methods toString for all classes. Supply a test program that tests these classes and methods.

Complete the following files:

Instructor.java

Person.java

PersonTester2.java

Student.java

Use the following file:

PersonTester.java

/**
   This class tests the Person, Student, and Instructor classes.
*/
public class PersonTester
{
   public static void main(String[] args)
   {
      Person p = new Person("Perry", 1959);
      Student s = new Student("Sylvia", 1979, "Computer Science");
      Instructor e = new Instructor("Edgar", 1969, 65000);
      System.out.println(p);
      System.out.println("Expected: Person[name=Perry,birthYear=1959]");
      System.out.println(s);
      System.out.println("Expected: Student[super=Person[name=Sylvia,birthYear=1979],major=Computer Science]");
      System.out.println(e);
      System.out.println("Expected: Instructor[super=Person[name=Edgar,birthYear=1969],salary=65000.0]");
   }
}