Question: Please Explain, Thanks :) QUESTION 9 Given is a java class 'Illustrate'. What are the contents of the object 11, and 12 right after line

Please Explain, Thanks :)

Please Explain, Thanks :) QUESTION 9 Given is a java class 'Illustrate'.

QUESTION 9 Given is a java class 'Illustrate'. What are the contents of the object 11, and 12 right after line 9 in the main method? public class Illustrate public static void main (String [] args) private int x; private static int y 0; public static int count-0; public Illustrate() 1. Illustrate 11 = new Illustrate(3); 2. Illustrate 12 new Illustrate(5); 3 4. Illustrate.incrementY); public Illustrate(int a) 9. Illustrate.count+; 10 public Illustrate (Illustrate I) 12 13. Illustrate 13 new Illustrate(11); 14 15. Illustrate I413 16. Illustrate.count; 17. I3.setx(2); 18. I1-14; 19 20 21 this.x 1.x; public void setx(int a) public String toStringC) return("r # " + x + " y " + y + count-, + count); public static void incrementY) 011: x-3, y:0, count-1 12: x = 5, y 1, count = 1 011:x:3, y = 1, count = 1 12: x 3, y 1, count 1 e)11:X=3, y = 1, count = 1 12: x = 5, y = 1,count = 1 011:x=3, y = 0, count = 1 12: x = 5, y = 0, count = 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To determine the contents of the objects I1 and I2 right after line 9 we need to follow the steps of ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!