View Single Post
  #2 (permalink)  
Old 07-25-2007, 10:17 PM
Seemster Seemster is offline
Member
 
Join Date: Jul 2007
Posts: 55
Seemster is on a distinguished road
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;
}
}
Reply With Quote