Answer Posted / mohit bhandari
An interface is a named set of method signatures.Interfaces
can also define events and properties because all of these
are just syntax shorthands that map to methods anyway.
In C#, interface keyword is used to define an interface,
giving it a name and its set of instance method signatures.
e.g.
public interface IDisposable {
void Dispose();
}
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is a decimal in c#?
What is connection pooling in ado.net?
What is difference between dynamic and var in c#?
what is .NET framework architecture ??
What is c# used for?
What is default constructor in c#?
what is IFormatable
What is the difference between list and ilist in c#?
Does c# do array bounds checking?
How to exclude a property from xml serialization?
Can you inherit from a sealed class?
What is the solution if you need to manipulate sets of items?
What will a loop recorder show?
What is the default value of date?
What is an assembly qualified name