Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 1.13 KB

File metadata and controls

19 lines (12 loc) · 1.13 KB

🏢 Personnel Management System

Course: Object-Oriented Programming in JAVA Lab (BCA39109)

This project is a Java-based console application designed to calculate and manage employee salaries. It serves as a practical demonstration of advanced Object-Oriented Programming (OOP) concepts.

🧠 Core OOP Concepts Demonstrated

  • Inheritance: The system uses a base Employee class, which shares common attributes (like Name and ID) with its specific subclasses (FullTimeEmployee and PartTimeEmployee).
  • Method Overriding: Each subclass provides its own specific implementation of the base calculateSalary() method (e.g., fixed monthly salary vs. hourly rate × hours worked).
  • Method Overloading: The system features a calculateSalary(double bonus) method, demonstrating how multiple methods can share the same name but accept different parameters to calculate total compensation.

🚀 How to Compile and Run

To run this program, you will need the Java Development Kit (JDK) installed on your system.

  1. Open your terminal or command prompt.
  2. Navigate to the directory where the file is saved.
  3. Compile the Java file: