C#.NET INTERVIEW QUESTION & ANSWERS
DOT Net
TAGS
56. | What is the difference between objects and class? |
---|---|
|
57. | What is nested classes? |
---|---|
Nested classes are classes with in classes. |
58. | 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. |
Posted by Deepali Gavhane. (Apr 14, 2014 ) | |
Boxing is process of converting Value type object to reference type object. Value types store on stack. |
59. | Can you prevent your class from being inherited by another class? |
---|---|
Yes. The keyword "sealed" will prevent the class from being inherited. |
Posted by Sunil. (Feb 13, 2014) | |
by making the constructor private this can be done. |
60. | Which method is used to display a form? |
---|---|
The Show() method |