Attached you will find a Java class called Employee. This class includes a constructor which sets name to blanks and salary to $0.00 and a constructor which sets name to a starting name and salary to a set amount. Additionally, the class includes methods to set the name and salary and return the name and salary. You will create a new class called Manager that inherits from the attached class Employee. Add a field named department of type String. Create a get and set method for the department variable. Supply a method toString that prints the manager's name, department, and salary. But you may not change anything in the Employee class. You will then create a test class that uses the Manager class. The test class should prompt the user to enter name, department and salary. This information should be stored in an array. Upon entry of an employee records, the program should output the information you entered.
Attached you will find a Java class called Employee. This class includes a constructor which sets name to blanks and salary to $0.00 and a constructor which sets name to a starting name and salary to a set amount. Additionally, the class includes methods to set the name and salary and return the name and salary.
You will create a new class called Manager that inherits from the attached class Employee. Add a field named department of type String. Create a get and set method for the department variable. Supply a method toString that prints the manager's name, department, and salary.
But you may not change anything in the Employee class.
You will then create a test class that uses the Manager class. The test class should prompt the user to enter name, department and salary. This information should be stored in an array. Upon entry of an employee records, the program should output the information you entered.


Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images









