Interface Employee
-
- All Known Implementing Classes:
HourlyEmployee,PartTimeEmployee,SalariedEmployee
public interface EmployeeEmployee interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublepay(double taxRate)Calculate the current pay expected for the employeejava.lang.StringtoString()Returns the string representation of an employee
-
-
-
Method Detail
-
toString
java.lang.String toString()
Returns the string representation of an employee- Overrides:
toStringin classjava.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
-
-