Advertisements
Advertisements
Question
Multiple constructors with different set of parameters are called:
Options
multiple constructors
formal constructors
actual constructors
overloaded constructors
MCQ
Advertisements
Solution
overloaded constructors
Explanation:
Constructor overloading allows a single class to have more than one constructor, provided their parameter lists (number of arguments, types of arguments, or order of arguments) are completely different. This gives the programmer flexibility to initialize objects in multiple distinct ways
shaalaa.com
Is there an error in this question or solution?
Chapter 4: Constructors - Exercises [Page 114]
