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.
![Part 1: Implement a superclass Employee that has the following fields and methods.
Fields:
●
string firstName
string lastName
int employeelD
double salary
Methods:
constructor method - initialize salary field to zero.
• setters and getters for firstName, lastName, and employeelD
employeeSummary 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.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fdc521870-4624-4cae-b9c3-d06287b688fd%2F7ec276d2-f14e-4ac4-80a6-3bb91978e487%2Fs5yuaga_processed.png&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
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
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)