Skip to content

Instantly share code, notes, and snippets.

@goodwill
Forked from anonymous/student
Created March 29, 2009 07:12
Show Gist options
  • Save goodwill/87314 to your computer and use it in GitHub Desktop.
Save goodwill/87314 to your computer and use it in GitHub Desktop.
public class Student {
private String name;
private int number;
private int age;
private String gender;
private int[] grade;
public Student(String stuName,int stuNumber,int stuAge,String stuGender, int[] stuGrade){
this.name = stuName;
this.number = stuNumber;
this.gender = stuGender;
this.age = stuAge;
this.grade=stuGrade;
}
public String getName(){
return name;
}
public int getNumber(){
return number;
}
public int getAge(){
return age;
}
public String getGender(){
return gender;
}
public int[] getGrade(){
return grade;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment