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;
	}
}

原文地址:https://www.cnblogs.com/a1111/p/12816605.html