Skip to content

CodingHelpLine/OOP---Employee-Salary-Calculator

Repository files navigation

OOP - Employee Salary Calculator

Inheritance based employee salary application to demonstrate Is-a relationship and Polymorphism.

Java Object Oriented Program

For Employee Salary Calculation


Create Classes

Employee Class:
	Employee Id
	First Name
	Last Name

	// getter and setter
	// calculateSalary

Hourly employee:

Hourly worked
hourly rate

Salary: hours * rate
Overtime salary: hours * (1.5 * rate)
gross salary: salary + overtime
override calcualteSalary() 

SalariedEmployee:

has only Base salary

CommissionEmployee:

Base salary
total sales
commission rate

About

Inheritance based employee salary application to demonstrate Is-a relationship and Polymorphism.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages