C#.NET INTERVIEW QUESTION & ANSWERS
96. |
What is the difference between Boolean literals and Integer literals? |
|
Boolean literals » True and False are literals of the Boolean type that map to the true and false state, respectively. Integer literals » Used to write values of types Int, ulnt, long, and ulong.
|
97. |
How can we suppress a finalize method? |
|
GC. SuppressFinalize() |
98. |
Where is the output of TextWriterTraceListener redirected? |
|
To the Console or a text file depending on the parameter passed to the constructor. |
99. |
What does virtual keyword mean? |
|
They signify that method and property can be overridden. |
100. |
Can events have access modifiers? |
|
Yes, you can have access modifiers in events. You can have events with the protected keyword,
which will be accessible only to inherited classes. You can have private events only for objects in that class.
|