Hii...
I am getting class not found error while executing a program.
List of files
ClassMain.java
Manager.java,Clerk.java,SalesPerson.java,Employee.java these 4 classes extends CompanyEmployee.java
In ClassMain.java
i have created a subclass object using superclass reference like this
CompanyEmployee employeeTwo = new Manager();
employeeTwo.setAllowance(1000);
setAllowance is a method in Manager.java
while compiling i am getting
error cannot find symbol
employeeTwo.setAllowance(1000);
I have checked spelling of functions in both the files but their is no mistake.
So,please reply me.
Thanks in advance.