|
public class Student() {
private Address home;
private Address work;
private Address school;
private int[] testScores = new int[] {0,0,0}
void Student(Address _home, Address _work, Address _school) {
this.home = _home;
this.work = _work;
this.school = = _school;
}
public int getTestScore(int testNo) {
return testScore[testNo];
}
public void setTestScore(int testNo, int testScore) {
testScore[testNo] = testScore;
}
}
|