Computer scienceProgramming languagesJavaCode organizationObject-oriented programmingClasses and objectsClasses and members

Multiple constructors

Class instantiation

Report a typo

You have the class SomeClass with several constructors.

class SomeClass {

    public SomeClass(int arg1) {  }
    
    public SomeClass(int arg1, int arg2) { }
}

Select all correct ways to create an instance of this class.

Select one or more options from the list
___

Create a free account to access the full topic