public class Employee
{
protected String name;
protected int sallary;
public Employee(String name, int sallary)
{
this.name = name;
this.sallary = sallary;
}
// getters and setters here
}
For now, everything's fine.
Now the subclass Boss in other file:
public class Boss extends Employee
{
// some code here
}
And I get a compilation error: "cannot find symbol - constructor Employee" ... Example in book looks identical, but I can't compile this. Ah, and I use BlueJ (required by teacher
This post has been edited by k0b13r: 21 November 2008 - 05:09 AM

New Topic/Question
Reply



MultiQuote





|