class Scores // class Scores does not use any other classes to be made later.. do first { int score; Scores nextScore; // I used nextScore instead of next so I do not have multiple nexts
public Scores(int s) { score = s; nextScore = null; }
}
class Girls { String name; int age; Girls nextGirl;
public Girls(String n, int a) { name = n; age = a; nextGirl = null; }
}
class Teachers { String name; String subject; Teachers nextTeacher; Teachers prevTeacher; Girls firstGirl;
public Teachers(String n, String s) { name = n; subject = s; nextTeacher = null; prevTeacher = null; firstGirl = null; }
}
|