Class Employee2
java.lang.Object
|
+--Employee2
- public class Employee2
- extends java.lang.Object
This class represents Employees
- Author:
- Bill Steinmetz
|
Method Summary |
void |
calculateSalary()
Calculates the Employee's salary including time worked
beyond 40 hours per week (overtime) |
java.lang.String |
getName()
|
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Employee2
public Employee2()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
- Returns:
- a
String representing all of
the Employee's data
getName
public java.lang.String getName()
- 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