Question: Part 1 : Implement a superclass Employee that has the following fields and methods. Fields: string firstName string lastName int employeeID double salary Methods: constructor
Part : 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
employeeSummary method prints all account attributes
Part : 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.
Place each Java class into a separate Java source file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
