Interface Employee

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double pay​(double taxRate)
      Calculate the current pay expected for the employee
      java.lang.String toString()
      Returns the string representation of an employee
    • Method Detail

      • toString

        java.lang.String toString()
        Returns the string representation of an employee
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation of an employee
      • pay

        double pay​(double taxRate)
        Calculate the current pay expected for the employee
        Parameters:
        taxRate - The current tax rate
        Returns:
        current pay expected