The document is an error message and code snippet from a user who is getting errors when trying to compile their Employee class. The errors indicate that the methods "sethourlySalary()" and "setweeklyHours()" cannot be found, and that the variable "weeklyH" is not defined. The code provided declares fields for employee data but does not include the mentioned methods.
2. Jromero
Hi
P:
16 I am getting this error message ...can anyone help me out?????
C:Documents and SettingsJessica RomeroDesktopEmployee.java:23: cannot find
symbol
symbol : method sethourlySalary(double)
location: class Employee
sethourlySalary(hourlyS);
^
C:Documents and SettingsJessica RomeroDesktopEmployee.java:24: cannot find
symbol
symbol : method setweeklyHours(double)
location: class Employee
setweeklyHours(weeklyH);
^
C:Documents and SettingsJessica RomeroDesktopEmployee.java:82: cannot find
symbol
symbol : variable weeklyH
location: class Employee
return weeklyH;
^
3 errors
Tool completed with exit code 1
Here is mi code
Expand|Select|Wrap|Line Numbers
1. //Create by Jessica Romero
2.
3. public class Employee{
4.
5. private String firstName;
6. private String lastName;
7. private String middleName;
8. private String socialSecurityNumber;
9. private String dateBirth;
10. private double hourlySalary; //Salary per hours
11. private double weeklyHours; //hours worked
12.
13.