You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.3 KiB

package com.example.t2;
public class User {
private String name; //用户名
private String password; //密码
private String email; //邮箱
private String phonenum; //手机号码
User(String name, String password, String email, String phonenum) {
this.name = name;
this.password = password;
this.email = email;
this.phonenum = phonenum;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getPhonenum() {
return phonenum;
}
public void setPhonenum(String phonenum) {
this.phonenum = phonenum;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public String toString() {
return "User{" +
"name='" + name + '\'' +
", password='" + password + '\'' +
", email='" + email + '\'' +
", phonenum='" + phonenum + '\'' +
'}';
}
}