1  /**
  2     An employee with a name and a mechanism for computing weekly pay.
  3   */
  4  public class Employee
  5  {
  6     private String name;
  7     /**
  8        Constructs an employee with an empty name.
  9     */
 10     public Employee()
 11     {
 12        name = "";
 13     }
 14  
 15     /**
 16        Sets the name of this employee.
 17        @param employee_name the new name 
 18     */
 19     public void setName(String employeeName)
 20     {
 21        name = employeeName;
 22     }
 23  
 24     /**
 25        Gets the name of this employee.
 26        @return the name 
 27     */
 28     public String getName()
 29     {
 30        return name; 
 31     }
 32  
 33     /**
 34        Computes the pay for one week of work.
 35        @param hoursWorked the number of hours worked in the week
 36        @return the pay for the given number of hours
 37     */
 38     public double weeklyPay(int hoursWorked)
 39     {
 40        return 0; 
 41     }
 42  }