Which Is A Good Alternative Instead Of Having One Zero Argument #1215
Which is a good alternative instead of having one zero argument constructor and one single argument constructor with default argument?
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.2.
Which is a good alternative instead of having one zero argument constructor and one single argument constructor with default argument?
No constructor defined
One default value constructor
Defining the default constructor
Using one constructor with two arguments