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
What is datagridview in c#?
How do switch statements work?
Can we customize the serialization process?
Is it possible to have a static indexer in c#?
How do you use nullable?
What is difference between dictionary and hashtable?
What are the return types in c#?
What is streamreader/streamwriter class?
What is c-sharp (c#)?
What is the difference between System.console.WriteLine() and System.console.Write() function?example?
What is difference between method and function in c#?
What is _viewstart cshtml?
What is better C# or VB.NET?
Explain synchronous and asynchronous operations?
What is the base class of all classes in c#?