Technical Discussion :: C++
Home > Technical Interview Q&A > C++ > Discussion
22 / 187
Mention the advantages of having default arguments in constructors.
Answer:
• It prevents us from having to provide an overloaded constructor that takes no parameters.
• It is convenient by providing the default common initial values than specifying them each time an object is declared.
Asked In ::
Amit Yadav
23 Feb, 2019 5:07 AM
• It prevents us from having to provide an overloaded constructor that takes no parameters.
• It is convenient by providing the default common initial values than specifying them each time an object is declared.
• It is convenient by providing the default common initial values than specifying them each time an object is declared.
Dgfdvbgfdgvfv
26 Jul, 2021 11:38 PM
gfgbfgfdvgfbdvbvgf
JHIL PATEL
26 Jul, 2021 11:46 PM
-
Report Error
Please Login First Click Here
Report Error
Please Login First Click Here
Kinza
17 Jan, 2022 6:26 PM
1)Provide a simple, natural and effective programming style.