Which Is The Correct Syntax For Using Default Arguments With #112
Which is the correct syntax for using default arguments with the 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 Constructors and Destructors - OOPs MCQ: Constructors - Quiz No.1.
Which is the correct syntax for using default arguments with the constructor?
default constructorName(default int x=0)
constructorName(default int x=0)
constructorName(int x=0)
constructorName()