what is the real use of interface in c#,other than that
multiple inheritance is not possible
Answer Posted / venkatesan
Interface is a contract which declares a method inside and
gives the implementation in different classes using
polymorphism. we cannot create a object to an interface but
we can create a reference for an interface.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How do I create a delegate/multicastdelegate?
explain the nature of the assembly work?
How do you pass reference parameters in c#?
What is Global Assembly Cache (GAC) and what is the purpose of it? (How to make an assembly to public? Steps) How more than one version of an assembly can keep in same place?
What is the difference between structure and class in c#?
Explain about accessibility modifier 'protected internal'?
What's difference between constants and static readonly?
What is constructors, explain with syntax
What is a string in c#?
What is verbatim literal in c#?
What is c# most used for?
What is field in c#?
When a Static Constructor is called in a Class?
what is a static constructor?
What is the difference between field and property in c#?