Can a single argument constructor with a default value be subject to implicit type conversion
Posted
by Richard
on Stack Overflow
See other posts from Stack Overflow
or by Richard
Published on 2010-05-05T17:04:59Z
Indexed on
2010/05/05
17:08 UTC
Read the original article
Hit count: 274
I understand the use of the explicit keyword to avoid the implicit type conversions that can occur with a single argument constructor, or with a constructor that has multiple arguments of which only the first does not have a default value.
However, I was wondering, does a single argument constructor with a default value behave the same as one without a default value when it comes to implicit conversions?
© Stack Overflow or respective owner