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.
Make a class Employee with a name and salary. Make a class Manager inherit from Employee. Add an instance variable, named department, of type String. Supply a method toString that prints the manager's name, department, and salary. Make a class Execu tive inherit from Manager. Supply appropriate toString methods for all classes. Supply a test program that tests these classes and methods.
A labeled point has x- and y-coordinates and a string label. Provide a class Labeled Point with a constructor LabeledPoint(int x, int y, String label) and a toString method that displays x, y, and the label.
Reimplement the LabeledPoint class of Exercise P9.12 by storing the location in a java.awt.Point object. Your toString method should invoke the toString method of the Point class.