abc4616
10-07-2006, 06:02 PM
This part of the program won't compile:
if (!editErrorFound)
{ if (hrs > 0 && rt > 0)
staff = new Employee (fn, ln, pos, rt, hrs );
else
staff = new Employee (ln,fn,pos);
}
What should I do? Here is the error statement:
C:\Documents and Settings\Desktop\Driver.java:250: cannot find symbol
symbol : constructor Employee(java.lang.String,java.lang.String,java.lang.String,float,float)
location: class Employee
staff = new Employee ( fn, ln, pos, rt, hrs);
^
1 error
Tool completed with exit code 1
if (!editErrorFound)
{ if (hrs > 0 && rt > 0)
staff = new Employee (fn, ln, pos, rt, hrs );
else
staff = new Employee (ln,fn,pos);
}
What should I do? Here is the error statement:
C:\Documents and Settings\Desktop\Driver.java:250: cannot find symbol
symbol : constructor Employee(java.lang.String,java.lang.String,java.lang.String,float,float)
location: class Employee
staff = new Employee ( fn, ln, pos, rt, hrs);
^
1 error
Tool completed with exit code 1