//映射数据库中是一张表
public class Users {
//属性,对应的是表中的一个个字段
private int userId=0;
private String userName=null;
private String userPsw=null;
private int userAge=0;
private String userPhone=null;
//属性的getter和setter方法
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserPsw() {
return userPsw;
}
public void setUserPsw(String userPsw) {
this.userPsw = userPsw;
}
public int getUserAge() {
return userAge;
}
public void setUserAge(int userAge) {
this.userAge = userAge;
}
public String getUserPhone() {
return userPhone;
}
public void setUserPhone(String userPhone) {
this.userPhone = userPhone;
}
//改写toString()方法
public String toString(){
String str ="用户ID号:" + this.userId +
"姓名:" + this.userName +
"密码:" + this.userPsw +
"年龄:" + this.userAge +
"联系电话:" + this.userPhone;
return str;
}
}
最近下载更多
一个好人520 LV10
2021年9月29日
李经纬 LV1
2019年4月16日
Zero0006 LV1
2019年4月4日
1324488732 LV27
2018年12月25日
949132241 LV1
2018年11月13日
love123123 LV4
2018年9月19日
wyx065747 LV67
2017年6月28日
fanyiqiang LV14
2016年11月10日
Yuancc LV21
2016年7月22日

最近浏览