Which of the following ways to create an object of the Sample class given below will work correctly? class Sample { int i; Single j; double k; public Sample (int ii, Single jj, double kk) { i = ii; j = jj; k = kk; } }
Correct Answer: Sample s3 = new Sample(10, 1.2f, 2.4);
Discussion & Comments