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...


in java


Make a class Employee with a name and salary. Make a class Manager inherit from<br>Employee. Add an instance variable, named department, of type string. Supply a<br>method tostring that prints the manager's name, department, and salary. Make a<br>class Executive inherit from Manager. Supply appropriate toString methods for all<br>classes. Supply a test program that tests these classes and methods.<br>

Extracted text: 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 Executive inherit from Manager. Supply appropriate toString methods for all classes. Supply a test program that tests these classes and methods.

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here