robert walter

Greenhorn
+ Follow
since Apr 08, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by robert walter

Well thanks for the help. I fixed the snippet

and then fixed

and

After those changes I have more errors, which are
C:\cis163\Project5_2\src\Project5_2.java:108: cannot resolve symbol
symbol : method setManagerName (java.lang.String)
location: class Employee
anEmployee.setManagerName(managerName);
^
C:\cis163\Project5_2\src\Project5_2.java:130: cannot resolve symbol
symbol : method getManagerName ()
location: class Employee
System.out.println( "Managers name; " + anEmployee.getManagerName() );
^
I already declared the variable in my SalesEmployee class so I dont understand the error
20 years ago
Ok, I'm getting some errors in my SalesEmployee class which extends Employee class. The error has to do with a variable that isnt in the employee class called "managerName". Its in the SalesEmployee class because thats how the teacher wants it. Did I declare it wrong in my SalesEmployee class or what am I doing wrong. Here is my SalesEmployee class and the main class which tests the class.

My errors are:
C:\cis163\Project5_2\src\Project5_2.java:62: cannot resolve symbol
symbol : constructor Employee (java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,short,double,java.lang.String,Company)
location: class Employee
Employee anEmployee = new Employee( employeeFName,employeeLName,employeeAddress,
^
C:\cis163\Project5_2\src\Project5_2.java:108: cannot resolve symbol
symbol : variable aManagerName
location: class Project5_2
aManagerName.setManagerName(managerName);
^
C:\cis163\Project5_2\src\Project5_2.java:130: cannot resolve symbol
symbol : variable aManagerName
location: class Project5_2
System.out.println( "Managers name; " + aManagerName.getManagerName() );
^
Thanks
20 years ago