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;

}

}

[2511 byte] By [pberardi1a] at [2007-11-27 3:08:36]
# 1
For starters, Java is case sensitive: variables foo, Foo and FOO are all distinct.
DrLaszloJamfa at 2007-7-12 3:56:49 > top of Java-index,Java Essentials,New To Java...
# 2

> errors:

> setEmpHours = (hours);

> return this.EmpHours;

> pay = EmpHours * EmpPayRate;

> all cannot find symbol errors

Do you see any variable named "EmpHours" anywhere in your code? Remember that Java is case-sensitive.

Edit: DrLaszlo beats me to the punch.

Message was edited by:

Djaunl

Djaunla at 2007-7-12 3:56:49 > top of Java-index,Java Essentials,New To Java...