C# Interview Question and Answers
21. |
When do you absolutely have to declare a class as abstract? |
|
- When at least one of the methods in the class is abstract.
- When the class itself is inherited from an abstract class, but not all base abstract methods have been overridden.
|
|
|
22. |
Does C# have its own class library? |
|
Not exactly. In common with all .NET languages (example : VisualBasic.NET, Jscript.NET) C# has access to the .NET class library. C# does not have its own class library. |
|
|
23. |
Does C# have a 'throws' clause? |
|
No, unlike Java, C# does not require (or even allow) the developer to specify the exceptions that a method can throw.
|
|
|
24. |
What is a multicast delegate? |
|
It’s a delegate that points to and eventually fires off several methods.
|
|
|
25. |
What is the difference between the Debug class and Trace class? |
|
Documentation looks the same. Use Debug class for debug builds, use Trace class for both debug and release builds. |
|
|