// Java Name - // Inheritance Tracing Worksheet #1 Period - // Trace the following code using the applicable Person, Student & APStudent classes. // Print any output that is produced to the right of the line of code that produces it. // Explain any compile or run-time errors next to the applicable line of code and then // ignore the error and continue tracing the program. public class APStudentTest { public static void main(String[] args) { APStudent apJoe = new APStudent(); apJoe.studyForExam(); System.out.println(apJoe.getAPExamScore()); // 4 System.out.println(apJoe.toString()); 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(); } }