View Single Post
Old Oct 10th, 2005, 6:04 AM   #2
InfoGeek
Professional Programmer
 
InfoGeek's Avatar
 
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4 InfoGeek is on a distinguished road
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.
__________________
PFO - My daily dose of technology.
InfoGeek is offline   Reply With Quote