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 a hash table c#?
What is a dictionary in c#?
What is IL / CIL / MSIL?
Explain the serialization in .net
What are accessors?
What is ulong in c#?
What is .dbml file?
Explain concurrency with aop?
Difference between Value type & reference types ? and give the example in .Net?
What are functions c#?
What is ispostback c#?
What is unmannaged code and will CLR handle this kind of code or not .
What Is A Satellite Assembly?
What are object pooling and connection pooling and difference between them?
Write a syntax for writing a event delegate.