Class Employee3

java.lang.Object
  |
  +--Employee3

public class Employee3
extends java.lang.Object

This class represents Employees

Author:
Bill Steinmetz

Constructor Summary
Employee3()
          Employee3 default constructor initializes each instance variable to null (Strings) or 0 (doubles)
Employee3(java.lang.String f, java.lang.String l, double h, double p)
          Employee3 constructor
 
Method Summary
 void calculateSalary()
          Calculates the Employee's salary including time worked beyond 40 hours per week (overtime)
 java.lang.String getName()
          Gets the Employee's full name
 void setHoursWorked()
          Interactively assigns the number of hours worked
 void setName()
          Interactively assigns the Employee's first and last names
 void setPayRate()
          Interactively assigns the Employee's rate of pay
 java.lang.String toString()
          A String representation of the Employee's data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Employee3

public Employee3()
Employee3 default constructor initializes each instance variable to null (Strings) or 0 (doubles)

Employee3

public Employee3(java.lang.String f,
                 java.lang.String l,
                 double h,
                 double p)
Employee3 constructor
Parameters:
f - firstName
l - lastName
h - hoursWorked
p - payRate
Method Detail

toString

public java.lang.String toString()
A String representation of the Employee's data
Overrides:
toString in class java.lang.Object
Returns:
a String representing all of the Employee's data

getName

public java.lang.String getName()
Gets the Employee's full name
Returns:
a String representing the Employee's full name

calculateSalary

public void calculateSalary()
Calculates the Employee's salary including time worked beyond 40 hours per week (overtime)

setName

public void setName()
Interactively assigns the Employee's first and last names

setHoursWorked

public void setHoursWorked()
Interactively assigns the number of hours worked

setPayRate

public void setPayRate()
Interactively assigns the Employee's rate of pay