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
What is protected internal modifier in C#?
What is xslt in c#?
What is the difference between C# 3.5 and C# 4.0?
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
What is a type c#?
What are the string functions in c#?
Can we create extension method for interface?
Why it's said that writing into .NET Application Configuration Files is a Bad Idea?
What is static and use of it?
What are partial types in c#?
What is the signature of a method?
who is a protected class-level variable available to?
How to use delegates with events?
What is poco c#?
Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records