classwork
Class Paycheck

java.lang.Object
  extended by classwork.Paycheck

public class Paycheck
extends java.lang.Object

Models and computes the paycheck of an employee.

Author:
Tom James

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

name

private java.lang.String name
The name of the employee.


wage

private double wage
The hourly wage of the employee.


hours

private double hours
How many hours the employee has worked.

Constructor Detail

Paycheck

public Paycheck(java.lang.String name,
                double wage,
                double hours)
Parameters:
name - The name of the employee.
wage - The hourly wage of the employee.
hours - How many hours the employee worked.
Method Detail

getCash

public double getCash()
Returns:
How much money the employee has earned.

getName

public java.lang.String getName()
Returns:
The name of the employee.