Exercise 3: Solve the programming exercise P9.9 on Page 490 on the book. Make a class Employee with a name and salary. Make a class Manager inherit from Employee. Add an instance variable, named...

Java with screen shot
Exercise 3:<br>Solve the programming exercise P9.9 on Page 490 on the book.<br>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: Exercise 3: Solve the programming exercise P9.9 on Page 490 on the book. 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