Alex

Alex

  • NA
  • 55
  • 16.3k

Pls need some help! the Boss constructor underfind... why?

Sep 4 2013 10:56 PM

public class Boss extends Employee {
    
    public static final String DEFAULT_DEP_NAME = "NONE_PROVIDED ";
   
    private String depName;
    //no arg constructor
   
    public Boss(){
        this(DEFAULT_DEP_NAME);
    }
    public Boss(String depName){
        this(depName,DEFAULT_FIRST_NAME,DEFAULT_SURNAME,DEFAULT_AGE,new Address());
    }
    public Boss(String firstName,
            String surname, int age, Address address,String depName){
        super(firstName, surname, age, address);
        this.depName=depName;
       
    }
    public String getDepName() {
        return depName;
    }
    public void setDepName(String depName) {
        this.depName = depName;
    }
    public String toString() {
        return super.toString() + "[" + "Departament Name:" + this.depName +

                "]";
    }

    public String describeRole() {
        return "Boss ";
    }
}
 

Answers (2)