Thursday, June 4, 2009

Chapter 1-Lesson 4

  • Widening conversion means converting from a low precision type to a higher precision type (e.g. from float to double)
  • Narrowing conversion usually requires explicit casting
  • C# prohibits implicit narrowing conversions
  • Boxing converts a value type to a reference type, and unboxing converts a reference
    type to a value type.
  • ToString( ), Equals( ) and GetHash( ) are virtual members of object class

No comments:

Post a Comment