80,351
社区成员
发帖
与我相关
我的任务
分享
/**
* 学生类
* @author Administrator
*
*/
public class Student {
private int id; // 学号
private String name; // 姓名
private int gender = 0; // 性别,0:男,1:女
private int age; // 年龄
private String specialty; // 专业
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getGender() {
return gender;
}
public void setGender(int gender) {
this.gender = gender;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getSpecialty() {
return specialty;
}
public void setSpecialty(String specialty) {
this.specialty = specialty;
}
}