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 protected internal modifier in C#?

504


What is xslt in c#?

465


What is the difference between C# 3.5 and C# 4.0?

531


how to insert the data from the grid view to database table though button click.pls send the answer to mail id suri1319@gmail.com

1489


What is a type c#?

494






What are the string functions in c#?

515


Can we create extension method for interface?

488


Why it's said that writing into .NET Application Configuration Files is a Bad Idea?

525


What is static and use of it?

464


What are partial types in c#?

485


What is the signature of a method?

482


who is a protected class-level variable available to?

539


How to use delegates with events?

543


What is poco c#?

477


Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records

576