匿名用户
1级
2011-09-25 回答
展开全部
class student{
int id,age;
int EnglishScore,JavaScore,NetworkScore;
String name,sex;
public student(){
id=0;
age=0;
EnglishScore=JavaScore=NetworkScore=0;
name="null";
sex="female";
}
void setId(int id){
this.id=id;
}
int getId(){
return id;
}
void setAge(int age){
this.age=age;
}
int getAge(){
return age;
}
void setEnglishScore(int score){
EnglishScore=score;
}
int getEnglishScore(){
return EnglishScore;
}
void setJavaScore(int score){
JavaScore=score;
}
int getJavaScore(){