+ 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 Respostas
+ 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
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 5
You can try and tell us.
5th Feb 2018, 2:50 AM
Sachin Artani
Sachin Artani - avatar