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 hash table c#?

630


What is a dictionary in c#?

668


What is IL / CIL / MSIL?

864


Explain the serialization in .net

721


What are accessors?

693


What is ulong in c#?

756


What is .dbml file?

665


Explain concurrency with aop?

708


Difference between Value type & reference types ? and give the example in .Net?

705


What are functions c#?

705


What is ispostback c#?

650


What is unmannaged code and will CLR handle this kind of code or not .

770


What Is A Satellite Assembly?

735


What are object pooling and connection pooling and difference between them?

699


Write a syntax for writing a event delegate.

658