+6

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? https://www.sololearn.com/post/174063/?ref=app

11/12/2019 3:03:08 AM

Sonic

4 Answers

New Answer

+4

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

+3

~ 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.

+1

+1

Sonic 👍 😁😁