java面向对象高级分层实例_实体类

package bdqn.studentSys.entity;
/**
 * 学生实体类
 * @author Administrator
 *
 */
public class Student {
	private String name;//姓名
	private String pwd;//密码
	private int age;//年龄
	private int stuno;
	public int getStuno() {
		return stuno;
	}
	public void setStuno(int stuno) {
		this.stuno = stuno;
	}
	private String sex;//性别
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
}

posted @ 2016-11-10 13:51  穆雄雄  阅读(61)  评论(0编辑  收藏  举报