Which Among The Following Can Be Used In Place Of Default #1205
Which among the following can be used in place of default constructor?
This multiple choice question (MCQ) is related to the book/course gs gs111 OOP Object Oriented Programming Java. It can also be found in gs gs111 Default Arguments vs Overloading, Upcasting and Downcasting - OOPs MCQ: Constructors Overloading - Quiz No.1.
Which among the following can be used in place of default constructor?
constructorName(int x, int y=0)
constructorName(int x=0, int y=0)
constructorName(int x=0, int y)
constructorName(int x, int y)