TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
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 ";
}
}
Reply
Answers (
2
)
Murachs JavaScript and DOM Scripting
need some help with an Array