zl程序教程

您现在的位置是:首页 >  后端

当前栏目

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

JAVA实例 高级 面向对象 分层 实体类
2023-09-14 08:57:41 时间
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;
	}
}