Quote:
|
My question is what rules govern implicit typecasts to user defined classes.
|
The constructor is used to build the object in such cases. The constructor must take a single argument. Also, You can avoid implicit conversions by using the Explicit keyword with the constructor.