package z.Students;
//工具类
public class StudentsTest2 {
// 定义 用户名,密码,邮箱,手机登信息
private String name;
private String mima;
private String emila;
private String phone;
public StudentsTest2() {
super();
// TODO Auto-generated constructor stub
}
//构造方法
public StudentsTest2(String name, String mima, String emila, String phone) {
super();
this.name = name;
this.mima = mima;
this.emila = emila;
this.phone = phone;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getMima() {
return mima;
}
public void setMima(String mima) {
this.mima = mima;
}
public String getEmila() {
return emila;
}
public void setEmila(String emila) {
this.emila = emila;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
@Override
//复写tostring方法,当用到tostring时,打印的会是以下信息
public String toString() {
return "StudentsTest2 [name=" + name + ", mima=" + mima + ", emila="
+ emila + ", phone=" + phone + "]";
}
}
|