If A Constructors Should Be Capable Of Creating Objects Without #1202
If a constructors should be capable of creating objects without argument and with arguments, which is a good alternative for this purpose?
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.
If a constructors should be capable of creating objects without argument and with arguments, which is a good alternative for this purpose?
Use zero argument constructor
Use constructor with one parameter
Use constructor with all default arguments
Use default constructor