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

Constructor Index

 o Contractor(float, String, String)

Method Index

 o CalculatePayCheck(int)
This method calculates how much is due to a contractor based on how much he's worked and his hourly rate.
 o GetHourlyRate()
This method can be used to retrieve the hourly rate paid to the contractor.

Constructors

 o Contractor
  public Contractor(float sal,
                    String fName,
                    String lName)

Methods

 o 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.
 o 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.