Interface Employee
-
- All Known Implementing Classes:
HourlyEmployee
,PartTimeEmployee
,SalariedEmployee
public interface Employee
Employee interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
pay(double taxRate)
Calculate the current pay expected for the employeejava.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 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
-
-