Possible Duplicate:
Implicit VS Explicit Conversion
What is the difference between “implicit conversion” and “explicit conversion”? Is the difference different in Java and C++?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
An explicit conversion is where you use some syntax to tell the program to do a conversion. For example (in Java):
An implicit conversion is where the conversion happens without any syntax. For example (in Java):
It should be noted that (in Java) conversions involving primitive types generally involve some change of representation, and that may result in loss of precision or loss of information. By contrast, conversions that involve reference types (only) don’t change the fundamental representation.
I don’t imagine so. Obviously the conversions available will be different, but the distinction between “implicit” and “explicit” will be the same. (Note: I’m not an expert on the C++ language … but these words have a natural meaning in English and I can’t imagine the C++ specifications use them in a contradictory sense.)