class Sample
{
int i;
Single j;
double k;
public Sample (int ii, Single jj, double kk)
{
i = ii;
j = jj;
k = kk;
}
}
A.Sample s1 = new Sample();
B.Sample s1 = new Sample(10);
C.Sample s2 = new Sample(10, 1.2f);
D.Sample s3 = new Sample(10, 1.2f, 2.4);
E.Sample s1 = new Sample(, , 2.5);
Answer: Option D
{
int i;
Single j;
double k;
public Sample (int ii, Single jj, double kk)
{
i = ii;
j = jj;
k = kk;
}
}
A.Sample s1 = new Sample();
B.Sample s1 = new Sample(10);
C.Sample s2 = new Sample(10, 1.2f);
D.Sample s3 = new Sample(10, 1.2f, 2.4);
E.Sample s1 = new Sample(, , 2.5);
Answer: Option D