Interviews3 answers
If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?
3 Answers
Paves way for Programming to the Interfaces by the way of Creating References to instantiate any class that has implemented the Interface.This in not possible in thru Abstract classes.
Omkumar MuthusamyPosted May 6, 2017, 7:18 AM EDT
we can Implement multiple Interface in a class. C# does not support Multiple Inheritance. Through Interface we can get that.
Pramod VermaPosted Feb 10, 2015, 8:46 AM EST
A:Interfaces define a contract. You should use it only if you want to support a group or related functionalities in a class or struct. Otherwise there is no need to use it.
Sonia SharmaPosted May 2, 2012, 7:01 PM EDT
