Visit www.myprogramminglab.com to complete select exercises online and get instant feedback.
Exercise
Define a class called Administrator, which is a derived class of the class SalariedEmployee in Display You are to supply the following additional instance variables and methods:
• An instance variable of type String that contains the administrator’s title (such as "Director" or "Vice President").
• An instance variable of type String that contains the administrator’s area of responsibility (such as "Production", "Accounting", or "Personnel").
• An instance variable of type String that contains the name of this administrator’s immediate supervisor.
• Suitable constructors, and suitable accessor and mutator methods.
• A method for reading in an administrator’s data from the keyboard.
Override the definitions for the methods equals and toString so they are appropriate to the class Administrator.
Also, write a suitable test program.
Display
The Derived Class SalariedEmployee
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.