C#.NET INTERVIEW QUESTION & ANSWERS
71. |
What are Sealed Classes ill C#? |
|
The sealed modifier is used to prevent derivation from a class. A compile-time error occurs if a sealed class is specified as the base class of another class. |
72. |
What is Dispose method in .NET? |
|
.NET provides 'Finalize' method in which we can clean up our resources. But relying on this
is not always good so the best is to implement Idisposable' interface and implement the 'Dispose' method where you can put your clean up routines. |
73. |
What are the access-specifiers available in c#? |
|
The access specifiers available in C# are : - Private
- Protected
- Public
- Internal
- Protected Internal
|
74. |
What is a multicast delegate? |
|
Each delegate object holds reference to a single method. However, it is possible for a delegate
object to hold references of and invoke multiple methods. Such delegate objects are called multicast delegates or combinable delegates.
|
75. |
Can we have static indexer in C#? |
|
No |