Answered step by step
Verified Expert Solution
Link Copied!

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 :)

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

What is the median debt-to-income ratio?

Answered: 1 week ago