Sunday, December 27, 2009

What is implicit type conversion?what is Widening in programming?what is casting in programming?

Explain the dagerous of declaring global variables to coder?What is implicit type conversion?what is Widening in programming?what is casting in programming?
Implicit conversion means that one type can be implied as another type. In the .Net framework, you can define implicit converters such that if you had an object A and it expected an object B, an implicit conversion operator could allow you to pass A to the method expecting B without a compilation or runtime error (provided the conversion was valid). I imagine other languages are similar. A simpler example might be performing math using the double value type, but actually storing the value in a float.





I don't know what widening is, never heard of it.





Casting is converting one type to another.

No comments:

Post a Comment