This Java application demonstrates a simple payroll system where you can manage full-time and part-time employees. It allows you to add employees, remove employees by their ID, and display the details of all employees.
Add full-time and part-time employees. Remove employees by their ID. Display details of all employees. How to Use
Create instances of FullTimeEmployee or PartTimeEmployee classes with the required parameters (name, id, monthlySalary for full-time employees, name, id, hoursWorked, hourlyRate for part-time employees). Use the addEmployee() method of PayrollSystem to add employees to the system.
Use the removeEmployee() method of PayrollSystem by providing the ID of the employee you want to remove.
Use the displayEmployees() method of PayrollSystem to print details of all employees.
Java Development Kit (JDK) Integrated Development Environment (IDE) such as IntelliJ IDEA or Eclipse Contribution Contributions are welcome! If you find any issues or have suggestions for improvement, feel free to open an issue or create a pull request.