Class SalariedEmployee
- java.lang.Object
-
- SalariedEmployee
-
-
Constructor Summary
Constructors Constructor Description SalariedEmployee(java.lang.String name, java.lang.String title, int id, double salary)
All salaried employees have name, title, id and current pay period salary
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
pay(double taxRate)
Process the pay, returning the final amount (salary * (1 - tax rate)*)java.lang.String
toString()
Return the string value as title + name
-
-
-
Constructor Detail
-
SalariedEmployee
public SalariedEmployee(java.lang.String name, java.lang.String title, int id, double salary)
All salaried employees have name, title, id and current pay period salary- Parameters:
name
- Their name representing the persontitle
- Their title or job descriptionid
- Their employee id numbersalary
- Their current salary for each pay period
-
-