1. 程式人生 > >java面向物件高階分層例項_實體類

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