Monday, June 20, 2016

Un Boxing

Unboxing is an explicit conversion from the type object to a value type.
Copying the value from the instance into value-type variable.
Eg:
Int i=123;       //a value type
Object o=i;    //Boxing

Int j=(int)o;         //Unboxing

No comments:

Post a Comment