Question: Question 11 Given a programmer-defined class called Person, what is output? Person barb = new Person(18); Person jessie = new Person (21); change(barb, jessie); System.out.println(barb.getAge();

Question 11 Given a programmer-defined class called Person, what is output? Person barb = new Person(18); Person jessie = new Person (21); change(barb, jessie); System.out.println(barb.getAge(); int age public static void change (Person p1, Person p2) { p2.getAge(); pl.setAge(age); 3 O Memory Location of "jessie" O 21 O Memory Location of "barb" 18
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
