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
What is console writeline in c#?
What do you mean by object pooling?
What is the difference between hashtable and dictionary?
What is the meaning of int parse in c#?
How do I stop my console from closing in c#?
When should you use generics?
What is difference between array and list?
What is the use of partial methods?
Are structs value types c#?
What do multicast delegates mean?
What is double c#?
How do I create a multi language, multi file assembly?
Why do we use virtual methods in c#?
What is difference between overloading and short circuiting?
What are the generation of Garbage Collection in C# .NET ?