what is the real use of interface in c#,other than that
multiple inheritance is not possible

Answer Posted / satyaprakash reddy

c#.net will not support multiple inheritence to overcome
these problems we use interfaces,
actually c# is faces some problems while go through the
garbage collection and interfaces are better according to
performance

Is This Answer Correct ?    21 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are c# i/o classes?

664


Can we declare private class in c#?

555


How do I convert a string to an int in c#?

596


Why dictionary is used in c#?

614


When should I use static in C#?

631






What is the purpose of dependency injection?

571


What is ienumerable and iqueryable?

588


How to get the sum of last 3 items in a list using lambda expressions?

598


What is disconnected data architecture in c#?

570


Is c# pass by value?

565


We cannot create instances of static classes. Can we have constructors for static classes?

598


What are value types and reference types?

640


What is winforms c#?

565


What is protected internal modifier in C#?

615


Is array reference type in c#?

568