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 for all classes. Supply a test program that test these classes and methods. A C:WINNT System321cmd.exe erson [nane=John Gre e nhouse.birthYear-19591 Student name: Maurice Dusseault Student's Date of Birth: 1979 Student's major: Conputer Science Ins uc cor's nane: Satyendra Narayan Instructor's Birth: 1969 Instructor's salar ress any key to continue -. . y:65800.0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
