黑马程序员技术交流社区
标题:
登陆注册小案例--3
[打印本页]
作者:
王哲zhe
时间:
2015-8-23 23:44
标题:
登陆注册小案例--3
package cn.itcast2.pojo;
public class User {
//用户名
private String username;
//密码
private String password;
//用户姓名
private String uname;
//年龄
private String age;
//无参构造
public User() {
super();
// TODO Auto-generated constructor stub
}
//带参构造
public User(String username, String password, String uname, String age) {
super();
this.username = username;
this.password = password;
this.uname = uname;
this.age = age;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getUname() {
return uname;
}
public void setUname(String uname) {
this.uname = uname;
}
public String getAge() {
return age;
}
public void setAge(String age) {
this.age = age;
}
@Override
public String toString() {
return "User [username=" + username + ", password=" + password
+ ", uname=" + uname + ", age=" + age + "]";
}
}
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/)
黑马程序员IT技术论坛 X3.2