I am having an error with my constructor, why is that? :|
public class Name{
private String firstName;
private String middleName;
private String lastName;
public Name(){
this( "null" , "null" , "null");
}
public Name(String first){
this(first," "," ");
}
public Name(String middle){
this(" ",middle," ");
}
public Name(String fName , String mName ,String lName){
setFullName(fName, mName, lName);
}
public void setFullName(String f , String m , String l){
setFirstName( f );
setMiddleName( m );
}
public void setFirstName(String firstName){
this.firstName = firstName;
}
public void setMiddleName(String middleName){
this.middleName = middleName;
}
public void setLastName(String LastName){
this.firstName = lastName;
}
public String getFirstName(){
return firstName;
}
public String getLastName(){
return lastName;
}
}