C# Interview Questions and Answers for Experienced - 3

Question: 11

What is a multicast delegate?

It’s a delegate that points to and eventually fires off several methods.

Question: 12

What is the difference between the Debug class and Trace class?

Use Debug class for debug builds.

Use Trace class for both debug and release builds.

Question: 13

What is the difference between overloading and shadowing?

Overloading – A member has the name, but something else in the signature is different.

Shadowing – A member shadows another member if the derived member replaces the base member.

Question: 14

What are the channels and formatters?

Channels

HTTP and TCP

Binary over TCP is most efficient

SOAP over HTTP is most interoperable

Formatters

Binary and SOAP

Question: 15

How do you inherit from a class in C#?

Place a colon and then the name of the base class. Notice that it’s double colon in C++.

Related Questions