25 lines
454 B
Java
Raw Normal View History

2021-02-03 14:34:48 -05:00
public class HomeBuyer{
//.getFirst .getLast .getCreditScore
//constructed as (first, last, score)
private String fName, lName;
private int creditScore;
public HomeBuyer(String fName, String lName, int creditScore){
this.fName = fName;
this.lName = lName;
this.creditScore = creditScore;
}
public String getFirst(){
return fName;
}
public String getLast(){
return lName;
}
public int getCreditScore(){
return creditScore;
}
}