本帖最后由 杨增坤 于 2013-8-27 22:12 编辑
public class SmsInfo {
private String body;
private String number;
private int type;
public SmsInfo(){}
public SmsInfo(String body, String number, int type) {
this.body = body;
this.number = number;
this.type = type;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public String getNumber() {
return number;
}
public void setNumber(String number) {
this.number = number;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
}
这个javabean中为什么要加一个无参的构造函数和一个有参的构造函数呢?表示什么意思?
|