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 linq in c#?
Is java better than c sharp?
What is the difference between interface and abstract class in c#?
What is difference between abstraction and encapsulation in c#?
Explain the process of inheriting a class into another class?
What basic steps are needed to display a simple report in crystal?
What is string pool in c#?
What is the difference between hashtable and dictionary?
How string definitions will prevent escaping on backslashes in C#?
What are jagged arrays used for?
What is windows form in c#?
What is array and its types in c#?
What is an extension method in c#?
Define a jagged array in c#?
What are most desktop applications written in?