SyntaxFix
Write A Post
Hire A Developer
Questions
public void setHoursWorked(){ hoursWorked = hours; }
You haven't defined hours inside that method. hours is not passed in as a parameter, it's not declared as a variable, and it's not being used as a class member, so you get that error.
hours