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
How can you access a private method of a class?
How Global.asax is used ?
What is the system namespace?
What Is The Smallest Unit Of Execution In .net?
What do you mean by parsing and how to parse a date time string in c#?
Is arraylist thread safe?
Which is the best language for desktop application?
Is multilevel inheritance possible in c#?
Define c# and list the features.
Is string a class in c#?
Why dictionary is faster than list?
What is as keyword in c#?
What is scope c#?
Why static constructor is parameterless in c#?
What is c# most used for?