Created
March 29, 2009 07:07
-
-
Save anonymous/87309 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} | |
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