Implement a superclass Person. Make two classes, Student and Instructor, that in
ID: 3554215 • Letter: I
Question
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
Explanation / Answer
( Done EXACTLY following the mentioned Specifications )
Find the solution here : http://ideone.com/QFKIuu
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.