Is my assumption correct? | SoloLearn: Learn to code for FREE!


Is my assumption correct?

... that the use of the explicit keyword in the constructor with the int parameter causes the invocation of the one with the double parameter (in the second case of the example below) with an implicit type conversion happening and without a compile time error?

11/12/2019 3:03:08 AM


4 Answers

New Answer


Sonic So it means you got it right by fluke 😁 Yes your assumption is correct


~ swim ~ you're right. I did get it right by a bit of a guess 😂. Had to look up the exact reason and see if there was any other expert opinion.



Sonic 👍 😁😁