Package calculator

Interface SalaryAdjustment

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 Type
    Method
    Description
    double
    Calculate the overtime pay.
    double
    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