Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Assignment Title: Employee Management System Implementation in Java Instructions: In this assignment, you are required to create a Java program that implements an Employee Management
Assignment Title: Employee Management System Implementation in Java
Instructions: In this assignment, you are required to create a Java program that implements an Employee
Management System using objectoriented principles. The system should consist of the following classes:
Employee Class:
Attributes: employeeID, name, department, salary, designation
Methods:
Accessor and mutator methods for all attributes
equals method to compare employees based on their designations
addBonus method to calculate the salary with a default bonus of $ month
Manager Class Subclass of Employee:
Methods:
Override the addBonus method to calculate the salary with a bonus of $ month
Clerk Class Subclass of Employee:
Methods:
Override the addBonus method to calculate the salary with a bonus of $ month
Main Class:
Testbed for the system
Create instances of Employee, Manager, and Clerk with sample data
Demonstrate the use of methods like display, addBonus, and calculateDeductions
Calculate and display the total deductions for all employees based on their leave records considering working days per month
Your program should showcase the following concepts:
Inheritance: Use of subclass Manager and Clerk extending superclass Employee
Method Overriding: Override the addBonus method in subclasses to customize behavior
Polymorphism: Use of overridden methods to achieve different behaviors based on the object's type
Submit your Java program with appropriate comments and test cases to demonstrate the functionality of the Employee Management System.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started