In Java: Implementing a Superclass Employee Part 1: Implement a superclass Employee that has the following fields and methods. Fields: string firstName string lastName int employeeID double salary Methods: constructor method - initialize salary field to zero. setters and getters for firstName, lastName, and employeeID employee Summary method - prints all account attributes Part 2: Implement a Manager class that inherits from the Employee class. Fields: string department a Methods: employeeSummary method - prints all superclass and subclass attributes Ensure that your program has the two required classes and a test class.
In Java: Implementing a Superclass Employee
Part 1: Implement a superclass Employee that has the following fields and methods.
Fields: string firstName
string lastName
int employeeID
double salary
Methods: constructor method - initialize salary field to zero.
setters and getters for firstName, lastName, and employeeID employee
Summary method - prints all account attributes
Part 2: Implement a Manager class that inherits from the Employee class.
Fields: string department a
Methods: employeeSummary method - prints all superclass and subclass attributes
Ensure that your program has the two required classes and a test class.
Hi.. Here i have created the super class employee and derived class manager and run the java program
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images