C# Interview Questions and Answers for Freshers - 3

Question: 11

Define inheritance?

Inheritance is deriving the new class from the already existing one.

Question: 12

Define boxing?

Boxing is the process of creating an instance of the reference type object and assigning the value of a value type to the object as well as storing information on the value’s data type.

Question: 13

Define unboxing?

Boxing is the process of assigning the value of the boxed objects type to a variable of the appropriate type.

Question: 14

Define Lifetime?

Lifetime refers to the span of time from when the variable is declared to when it is destroyed.

Question: 15

Define scope?

Scope refers to the region of code in which a variable may be accessed.

Related Questions