If there are 2 interface IParentInterface &
IChildInterface as follows.
interface IParentInterface
{
void InterfaceMethod();
}
interface IChildInterface : IParentInterface
{
void InterfaceMethod();
}
Both the interface contains method with same name
InterfaceMethod().
How InterfaceMethod() will be handled in IChildInterface as
its deriving IParentInterface
Answer Posted / anurag
use
void IChildInterface.InterfaceMethod(){}
don't use access modifier with explicit method.
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
Can you use all access modifiers for all types?
How to declares a two-dimensional array in C#?
how to sort an array in c#
Is c# used for any core features of windows vista?
What is marshalling and what are different kinds of marshalling?
What is difference between overloading and short circuiting?
Does c# support #define for defining global constants?
What exactly happens when we debug and build the program?
What is an extension method in c#?
What is unsigned int?
Why is lazy loading?
What is difference between throw and throws in c#?
What is the use of regex in c#?
Explain the difference between pass by value and pass by reference.
What does using do in c#?