C++, Constructor | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

C++, Constructor

What would be the type of error if two constructors are declared with same number and kind of parameters?

5th Feb 2018, 2:41 AM
Junaid Mahmud
Junaid Mahmud - avatar
2 Answers
+ 5
That would result in an ambiguous code, and so the error is most likely to be ' ambiguity in constructor overloads of class 'name' '.
5th Feb 2018, 4:33 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
+ 5
You can try and tell us.
5th Feb 2018, 2:50 AM
Sachin Artani
Sachin Artani - avatar