not seeing the error
errors:
setEmpHours = (hours);
return this.EmpHours;
pay = EmpHours * EmpPayRate;
all cannot find symbol errors
forget about the variable for Payrate...if i can get the structure down for hours, then i can do it for payrate.
Can you help?
/*
* HourlyEmployee.java
*
* Created on April 30, 2007, 11:56 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
/**
*
* @author P
*/
import java.util.Scanner;
publicclass HourlyEmployeeextends Employee
{
privateint empHours;
privatedouble EmpPayRate;
/** Creates a new instance of HourlyEmployee */
public HourlyEmployee(String name, String address, String ssn,
String id,double ysalary,int hours,int payrate)
{
super(name, address, ssn, id, ysalary);
setEmpHours = (hours);
EmpPayRate = payrate;
System.out.println("HourlyEmployee constructor has been constructed");
}
publicvoid setEmpHours(int hours)
{
empHours = hours;
}
publicint getHours()
{
return this.EmpHours;
}
publicdouble ComputePay()
{
double pay;
pay = EmpHours * EmpPayRate;
return pay;
}
}

