InterviewSolution
Saved Bookmarks
| 1. |
If a constructors should be capable of creating objects without argument and with arguments, which is a good alternative for this purpose?(a) Use zero argument constructor(b) Use constructor with one parameter(c) Use constructor with all default arguments(d) Use default constructorI had been asked this question in homework.My enquiry is from Constructors Overloading topic in portion Default Arguments vs Overloading, Upcasting and Downcasting of Object Oriented Programming |
|
Answer» Correct OPTION is (C) Use constructor with all default arguments |
|