+ 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
4 Respuestas
+ 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
Mabe