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...

If u declare two interfaces withsame methodnmae .prototype
how can u call the particular method from class?

Answer Posted / n.v.s prasad

By using explicit interface declaration which is nothing
but (Interfacename.Methodname) but the problem is method
available to interface not for class(if you careate
instance of your class we are not able to access method
which we implemented above in our class, so method is
availble to interface only)

Note:If you want to acess method by instance of your class
we need to cast our instance to 'interface'
((instance)interfacename).methodname--->Possible
instance.methodname ---->Not possible

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a linq in c#?

875


Is java better than c sharp?

948


What is the difference between interface and abstract class in c#?

903


What is difference between abstraction and encapsulation in c#?

1015


Explain the process of inheriting a class into another class?

985


What basic steps are needed to display a simple report in crystal?

940


What is string pool in c#?

982


What is the difference between hashtable and dictionary?

945


How string definitions will prevent escaping on backslashes in C#?

985


What are jagged arrays used for?

930


What is windows form in c#?

1022


What is array and its types in c#?

924


What is an extension method in c#?

975


Define a jagged array in c#?

895


What are most desktop applications written in?

958