MCQOPTIONS
Saved Bookmarks
| 1. |
Which of the following ways to create an object of the Sample class given below will work correctly? |
| 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); |
| Answer» E. | |