InterviewSolution
| 1. |
What Is A Nested Type. Give An Example? |
|
Answer» A type(class or a struct) defined INSIDE another class or struct is CALLED a NESTED type. An example is shown below. InnerClass is inside ContainerClass, Hence InnerClass is called as nested class. USING System; A type(class or a struct) defined inside another class or struct is called a nested type. An example is shown below. InnerClass is inside ContainerClass, Hence InnerClass is called as nested class. using System; |
|