public class APStudentTest { public static void main(String[] args) { APStudent apJoe = new APStudent(); apJoe.studyForExam(); System.out.println(apJoe.getAPExamScore()); System.out.println(apJoe); apJoe.saySomething(); System.out.println(apJoe.getGrade()); apJoe.passExams(); System.out.println(apJoe.getGrade()); apJoe.haveBirthday(); System.out.println(apJoe.getAge()); Student studentJane = new Student(); studentJane.passExams(); System.out.println(studentJane.myGrade); System.out.println(studentJane.getGrade()); System.out.println(studentJane.getAPExamScore()); studentJane.saySomething(); Person personMary = new Person(); personMary.setAge(16); personMary.setGrade(10); personMary.haveBirthday(); System.out.println(personMary.getAge()); Person personBob = new APStudent(); personBob.setAPExamScore(5); ((APStudent) personBob).setAPExamScore(5); System.out.println(personBob.getAge()); personBob.saySomething(); } }