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 scriptable objects have methods?
why delegate is type safe?
What is list array in c#?
What is generic method in c#?
what is the scope of anonymous type ?
What is a cshtml file?
Is xml tags are case sensitive?
Explain manifest & metadata in c#.
What is ulong in c#?
How do you escape in c#?
Why do we need generics?
Do loops in c#?
What is executereader in c#?
What do you mean by casting a data type?
Why should you override the tostring() method?