Question: public class Sample { private int a; private double b; public Sample ( int x , double y ) { a = x; b =
public class Sample
private int a;
private double b;
public Sampleint x double y
a x;
b y;
No other constructors
The following method appears in a class other than Sample.
public static void test
Sample object new missing constructor call ;
Which of the following could be used to replace missing constructor call so that the method will compile without error?
Responses
Sample
Sample
Sampleint x double y
Sampleint x double y
Sampleint x double y
Sampleint x double y
Sample
Sample
Sample
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
