1.
Q1: Considering the following incomplete class definition, which of the following constructors can be added to the
SomeClass
class without causing a compiler error?public class SomeClass {
public SomeClass(int first ) {
/* implementation not shown */ }
public SomeClass(int first, int second) {
/* implementation not shown */ }
public someClass(int first, String second) {
/* implementation not shown */ }
} // end SomeClass
- public SomeClass( ) …
- public SomeClass(String first, int second) …
- public SomeClass(String first) …
- I only
- I and II only
- I and III only
- II and III only
- I, II and III