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 EXACT USE OF INTERFACE(DONT TELL USE FOR
MULTIPLE INHERITANCE)

Answer Posted / matt s

An interface definition specifies the 'intent' of a public
interface without forcing a base implementation. It's more
used (in favour of base or abstract classes) in cases where
the interface defines some common 'high level'
characteristics or concepts for completely different
implementations - e.g:

A 'dog' interface may be specified with common methods such
as 'scratch' and 'bark', but each type of dog's
implementation of those would be completely different.
It's still a useful design feature however as it recognises
there are similarities at the higher 'behaviour' level.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How objects are stored in memory?

1013


Why extension method is static?

911


Define an abstract class?

913


in the nunit test framework, which attribute must adorn a test class in order for it to be picked up by the nunit gui?

1152


Why is hashset faster?

978


What is multithreading with .net?

994


What is assembly manifest?

1025


Is string mutable in c#?

862


What Is The Smallest Unit Of Execution In .net?

929


What is the default value of date?

936


Can you create an instance of a static class?

994


Can multiple inheritance implemented in c# ?

905


Can you see a loop recorder?

855


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

932


To allow an element to be accessed using a unique key which .NET collection class is used ?

1083