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
When do we generally use destructors to release resources?
What is float in unity?
Explain the serialization in .net
What is c# most used for?
What is jit? What are the different types of jit?
What is difference between an reference type and value type in C#?
What is generic delegates in c#?
Which are access modifiers available in c#?
Does c# support #define for defining global constants?
Why is hashset faster?
What is lock in c#?
What is an assembly in .net?
How we convert private assembly into public assembly?
What is the difference between class and namespace?
How many types of inheritance are there in c#?