I am getting the error, cannot find symbol- Constructor employee (blahblahblah)
heres the employee class it compiles fine....
public class Employee extends Person
{
private double salary;
private int emplId;
private String emplType;
private String emplTypeDescr;
private String firstName;
private String lastName;
public Employee(String firstName, String lastName, double salary, int emplId, String emplType, String emplTypeDescr)
{
super(firstName, lastName);
this.salary = salary;
this.emplId = emplId;
this.emplType = emplType;
this.emplTypeDescr = emplTypeDescr;
}
public int getEmpId() { return emplId; }
public String getEmplType() { return emplType; }
public String getEmplTypeDescr() { return emplTypeDescr; }
public void setEmplID(int emplId) { this.emplId = emplId; }
public void setEmplType(String emplType) { this.emplType = emplType; }
private void setEmplTypeDescr(String emplTypeDescr) { this.emplTypeDescr = emplTypeDescr; }
}
Manager.java is the problem its not compiling...
public class Manager extends Employee
{
private int emplId;
private String emplType;
private String emplTypeDescr;
private String firstName;
private String lastName;
public Manager(String firstName, String lastName, double salary, int emplId, String emplType, String emplTypeDescr)
{
super(firstName, lastName);
this.salary = salary;
this.emplId = emplId;
this.emplType = emplType;
this.emplTypeDescr = emplTypeDescr;
}
}
green area is the error....
I know this problem has already been solved but i dont understand how to fix it? Can anyone help me?