C# Interview Questions for Experienced Professionals - 1

Question: 1

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.

Question: 2

What is a static constructor?

A constructor for a class, rather than instances of a class.

The static constructor is called when the class is loaded.

Question: 3

What is type safe?

Type safe is about increasing the opportunities for the compiler to detect your coding errors.

If you use interfaces instead of delegates the compiler will have more opportunities to detect your coding errors.

Question: 4

How is method overriding different from method overloading?

When overriding a method, you change the behavior of the method for the derived class.

Overloading a method simply involves having another method with the same name within the class.

Question: 5

Can you inherit multiple interfaces?

Yes

Related Questions