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
Is array immutable in c#?
What are Namespaces?
Can I use parseint?
Is string a data type in c#?
What is cache memory in c#?
What is the data provider name to connect to access database?
Is javascript harder than c#?
If you donot specify an access modifier for a method, what is the default access modifier?
What is the difference between == and object.equals?
I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?
Describe ways of cleaning up objects in c#.
What is type cast in C#?
what is a structure in c#
What is the difference between protected and internal in c#?
What is difference between abstraction and encapsulation in c#?