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 the default value of boolean variable?
What is datarelation c#?
What are extensions in c#?
What is difference between a type and class?
Are arrays value types or reference types?
Is it possible to inherit multiple interfaces?
What happens when thread sleep () method is called?
Is boxing an implicit conversion?
What are console applications used for?
Why do we override in c#?
What is visual c# net?
What is the C# syntax to catch any possible exception?
What is the difference between and xml documentation tag?
Is arraylist type safe in c#?
In which format you can pass the value in the sleep function?