9
Reply

what is boxing and unboxing, explain it with examples?

Manoj Kumar

Manoj Kumar

7y
711
0
Reply

    Boxing = Convert from value type variable to reference type variable , ex : Int a=10 (Value Type), object o=a; (object is reference type). UnBoxing = Conver a variable from reference to value type, ex : int c= (int)o;

    To convert datatype in to object called boxing &visa

    To convert datatype in to object called boxing &visa

    To convert datatype in to object called boxing &visa

    To convert datatype in to object called boxing &visa

    To convert datatype in to object called boxing &visa

    To convert datatype in to object called boxing &visa

    To convert datatype in to object called boxing &visa

    Boxing = Value Type To Object Type ; Ubboxing = Object Type to Value Type;