If A Member Function Have To Be Made Both Zero Argument And #1188
If a member function have to be made both zero argument and parameterized constructor, which among the following can be the best option?
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: Default Arguments - Quiz No.1.
If a member function have to be made both zero argument and parameterized constructor, which among the following can be the best option?
Two normal and one default argument
At least one default argument
Exactly one default argument
Make all the arguments default