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

Can a struct inherit from another struct or class in c#?

926


How do I run managed code in a process?

1017


To create a localized application which namespaces are necessary?

986


Why cannot you specify the accessibility modifier for methods inside the interface?

918


What is a .exe extension files? How is it similar to .dll extension files?

1043


What is mvc pattern in c#?

923


What does the initial catalog parameter define in the connection string?

936


Is null empty or whitespace c#?

965


Is datetime nullable c#?

1018


Can a sealed class be used as a base class?

966


What is a multicast c# delegate?

1094


What do you know about Translate Accelerator?

1084


What is icomparer in c#?

933


What is the difference between method and constructor in c#?

1119


If I return out of a try/finally in c#, does the code in the finally-clause run?

980