|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Employee3
This class represents Employees
| 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 |
public Employee3()
public Employee3(java.lang.String f,
java.lang.String l,
double h,
double p)
f - firstNamel - lastNameh - hoursWorkedp - payRate| Method Detail |
public java.lang.String toString()
toString in class java.lang.ObjectString representing all of
the Employee's datapublic java.lang.String getName()
String representing the Employee's full namepublic void calculateSalary()
public void setName()
public void setHoursWorked()
public void setPayRate()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||