Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / pugal

When creating a standalone project which can be
changed at will, use an interface in preference to an
abstract class; because, it offers more design flexibility.

Use an interface to design a polymorphic hierarchy
for value types.

Use an interface when an immutable contract is
really intended.

A well-designed interface defines a very specific
range of functionality. Split up interfaces that contain
unrelated functionality.

Is This Answer Correct ?    48 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are mutable structs evil?

904


In object oriented programming, how would you describe encapsulation in c#?

902


What problem does Delegate Solve?

927


What are data types examples?

881


What does void mean in c#?

910


Can scriptable objects have methods?

838


What are sorted lists?

851


what is IDisposal interface,IComparable,IEquatable,IFormatable

959


What is the use of getcommandlineargs() method in c#.net?

921


Define an escape sequence, name few strings in escape sequence?

882


How does it work?

876


Can int be null c#?

874


How do I stop my console from closing in c#?

859


Is javascript harder than c#?

909


What is an int c#?

807