InterviewSolution
Saved Bookmarks
| 1. |
Choose effective differences between ‘Boxing’ and ‘Unboxing’.(a) ‘Boxing’ is the process of converting a value type to the reference type and ‘Unboxing’ is the process of converting reference to value type(b) ‘Boxing’ is the process of converting a reference type to value typeand ‘Unboxing’ is the process of converting value type to reference type(c) In ‘Boxing’ we need explicit conversion and in ‘Unboxing’ we need implicit conversion(d) Both ‘Boxing’ and ‘Unboxing’ we need implicit conversionThe question was posed to me by my college director while I was bunking the class.The doubt is from Scope and Lifetime of Variables topic in chapter Data Types, Variables and Operators of C# |
|
Answer» RIGHT OPTION is (a) ‘BOXING’ is the PROCESS of converting a value type to the reference type and ‘Unboxing’ is the process of converting reference to value type To explain I would say: By definition. |
|