The applicant should see that has a field member of and three different Lists or ArrayLists of School grade and objects and should also see that and are both extensions Student, Teacher, Subject Student Teacher of Each member of should have public accessors and there should be a constructor. As the People. School student you may want to "understand" the various members and then jump to the method implementation below (sample) public int getTopGrade(District district) { int topGrade = 0; for (School school : district.getSchools()) if (school.getGrade() > topGrade) topGrade = school.getGrade(); ; return topGrade }
The applicant should see that School has a field member of grade and three different Lists or ArrayLists of Student, Teacher, and Subject objects and should also see that Student and Teacher are both extensions of People. Each member of School should have public accessors and there should be a constructor. As the student you may want to "understand" the various members and then jump to the method implementation below (sample) public int getTopGrade(District district) { int topGrade = 0; for (School school : district.getSchools()) if (school.getGrade() > topGrade) topGrade = school.getGrade(); return topGrade ; }