Skip to content

hiitarun1/Employee_Tracker_System_OOPS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Employee_Tracker_System_OOPS

A simple Object-Oriented Java application that demonstrates the implementation of an employee tracker system.
The system supports Full-Time and Part-Time employees and calculates their salaries using polymorphism and abstraction.


πŸ“Œ Features

  • Add employees to the tracker system
  • Remove employees by ID
  • Display employee details
  • Calculate salaries dynamically using polymorphism
  • Supports multiple employee types:
    • Full-Time Employees
    • Part-Time Employees

🧠 Concepts Used

This project demonstrates several core Java OOP principles:

Abstraction

An abstract Employee class defines common properties and behaviors.

Inheritance

FullTimeEmployee and PartTimeEmployee extend the Employee class.

Polymorphism

calculateSalary() is implemented differently for each employee type.

Encapsulation

Private fields with public getters ensure controlled access.

Collections

Uses ArrayList to store and manage employees.


πŸ— Project Structure

Employee Tracker System
β”‚
β”œβ”€β”€ Employee (Abstract Class)
β”‚ β”œβ”€β”€ name
β”‚ β”œβ”€β”€ id
β”‚ β”œβ”€β”€ calculateSalary()
β”‚
β”œβ”€β”€ FullTimeEmployee
β”‚ └── monthlySalary
β”‚
β”œβ”€β”€ PartTimeEmployee
β”‚ β”œβ”€β”€ hoursWorked
β”‚ └── hourlyRate
β”‚
β”œβ”€β”€ PayrollSystem
β”‚ β”œβ”€β”€ addEmployee()
β”‚ β”œβ”€β”€ removeEmployee()
β”‚ └── displayEmployees()
β”‚
└── Main
└── Runs the payroll system

βš™οΈ Salary Calculation

Full-Time Employee

Salary = Monthly Salary

Part-Time Employee

Salary = Hours Worked Γ— Hourly Rate


πŸš€ How to Run

1. Compile the program

javac Main.java

java Main


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages