首页 > 编程语言 > 详细

Teacher implements java.io.Serializable

时间:2015-05-15 01:01:37      阅读:280      评论:0      收藏:0      [点我收藏+]

package JBJADV003;

public class Teacher implements java.io.Serializable{
private String name;
private int age;
private String gender;
private transient String password;
//包含引用类型数据属性
private Student stu;
public Teacher(String name,Student stu){
this.name=name;
this.stu=stu;
}
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;
}
public Student getstu() {
return stu;
}
public void setstu(Student stu) {
this.stu = stu;
}

}

Teacher implements java.io.Serializable

原文:http://www.cnblogs.com/JesseCary/p/4504813.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!