Question: Which constructor will be called for the object 03 in the following program? public class Operation { private int x; private double y; public Operation
Which constructor will be called for the object 03 in the following program? public class Operation { private int x; private double y; public Operation () { x=0; y = 0; } public Operation (int i) { x = i; y = i; } public Operation (int i, int i) { x = i + j; 3 public Operation (int i, double i) { y=i+ j; 3 } Operation o1 = new Operation (); Operation o2 = new Operation (10); Operation 03 = new Operation (10, 10); Operation 04 = new Operation (10, 10.0)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
