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
Are string objects mutable or immutable?
Write down the c# syntax to catch an exception
What is the difference between dll and lib?
How do I edit a dll file?
Is c# different than c++?
List down the access modifiers available in c#?
Does google use c#?
What are the examples of data types?
Explain the difference between a sub and a function in c#.
What is the difference between static and private constructor?
What is datatable in c#?
How are methods overloaded?
What are circular references?
What are the advantages of interface in c#?
What is expression tree with example?