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

How many variables do you need?

982


What is anonymous method in c#?

956


What is assembly manifest?

1110


What is boxing & unboxing?

1069


Can interface inherit class in c#?

1035


What is sorted list in c#?

951


What are the fundamental differences between value types and reference types?

1119


What is the difference between dataset and datatable in c#?

1096


Is c# still popular?

936


What is a void c#?

963


Differentiate between copy and default constructor.

1069


Explain the role of Garbage collector and its generations?

1012


What is the difference between Singleton design pattern and Factory design pattern?

1012


What are the different types of constructors in c#?

1181


How can you sort strings in array that are passed to method as arguments?

1069