|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclasswork.Paycheck
public class Paycheck
Models and computes the paycheck of an employee.
| Field Summary | |
|---|---|
private double |
hours
How many hours the employee has worked. |
private java.lang.String |
name
The name of the employee. |
private double |
wage
The hourly wage of the employee. |
| Constructor Summary | |
|---|---|
Paycheck(java.lang.String name,
double wage,
double hours)
|
|
| Method Summary | |
|---|---|
double |
getCash()
|
java.lang.String |
getName()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.String name
private double wage
private double hours
| Constructor Detail |
|---|
public Paycheck(java.lang.String name,
double wage,
double hours)
name - The name of the employee.wage - The hourly wage of the employee.hours - How many hours the employee worked.| Method Detail |
|---|
public double getCash()
public java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||