Programming Concepts using Java, Quiz 1
Which of the following statements is/are true about activation records?
Which of the following statements is/are true about activation records? Figure from the original question paper Consider the code given below. class Athlete { public void perform() { System.out.println("Athlete performs"); } public void perform(String activity) { System.out.println("Athlete performs " + activity); } } class Gymnast extends Athlete { public void perform(String move) { System.out.println("Gymnast performs " + move); } } public class TestAthlete { public static void main(String[] args) { Athlete a = new Gymnast(); // LINE 1 a.perform(); a.perform("backflip"); // LINE 2 } } Choose the correct option.