- All Known Implementing Classes:
PayrollCalculator
public interface SalaryAdjustment
Defines the interface calculating salary adjustments.
Provides methods to calculate overtime pay and total salary.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Calculate the overtime pay.double
salary()
Calculate the total salary.
-
Method Details
-
overtimePay
double overtimePay()Calculate the overtime pay.- Returns:
- the calculated overtime pay
-
salary
double salary()Calculate the total salary.- Returns:
- the total salary calculated
-