Class Contractor
Class Contractor
java.lang.Object
|
+----Person
|
+----Employee
|
+----Contractor
- class Contractor
- extends Employee
The Contractor class is used to represent
contract employees. Contract employees are
paid by the hour.
- Version:
- 1.0.0
- Author:
- Mike Cohn
-
Contractor(float, String, String)
-
-
CalculatePayCheck(int)
- This method calculates how much is due to
a contractor based on how much he's worked
and his hourly rate.
-
GetHourlyRate()
- This method can be used to retrieve the hourly rate
paid to the contractor.
Contractor
public Contractor(float sal,
String fName,
String lName)
GetHourlyRate
public float GetHourlyRate()
- This method can be used to retrieve the hourly rate
paid to the contractor.
- Returns:
- The contractor's hourly rate, excluding
exceptional circumstances such as holidays
and overtime.
CalculatePayCheck
public float CalculatePayCheck(int hours)
- This method calculates how much is due to
a contractor based on how much he's worked
and his hourly rate.
- Parameters:
- hours - The number of hours worked by the
contractor during this pay period.
- Returns:
- The amount of money due the contractor.