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
Can a class be protected in c#?
What is the use of flag in c#?
What is int16?
What is .net console?
What is thread.sleep()?
What is multithreading with .net?
Can you have an array of arrays?
Can you create partial delegates and enumerations?
What is the difference between field and property in c#?
What is a c# delegate?
Differentiate between dataset and datareader?
what is IComparable
Explain copy constructor?
What is the use of console application in c#?
What is enum in c#?