package JBJADV003;
public class Student implements java.io.Serializable {
private String name;
private int age;
private String gender;
private transient String password;
public Student(String name, int age,String gender,String password){
System.out.println("带参数的构造方法");
this.name=name;
this.age=age;
this.gender=gender;
this.password=password;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getGender() {
return gender;
}
public void setGender(String gender) {
this.gender = gender;
}
public String getpassword() {
return password;
}
public void setpassword(String password) {
this.password = password;
}
}