Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 :)
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 = 1Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started