public class Illustrate{private int x; private int y; public Illustrate () {x = 1; y = 2; }public Illustrate (int a) {x = a; }public void print () {System. out. println ("x = " + x + ", y = " + y); }public void incrementY () {y++; }}What does the default constructor do in the class definition above?1. Sets the value of x to 02. There is no default constructor. 3. Sets the value of x to 14. Sets the value of x to a
+1
Answers (1)
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “public class Illustrate{private int x; private int y; public Illustrate () {x = 1; y = 2; }public Illustrate (int a) {x = a; }public void ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Home » Computers & Technology » public class Illustrate{private int x; private int y; public Illustrate () {x = 1; y = 2; }public Illustrate (int a) {x = a; }public void print () {System. out.