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


Please Help Members By Posting Answers For Below Questions

What is console writeline in c#?

473


What do you mean by object pooling?

532


What is the difference between hashtable and dictionary?

509


What is the meaning of int parse in c#?

507


How do I stop my console from closing in c#?

462






When should you use generics?

515


What is difference between array and list?

497


What is the use of partial methods?

580


Are structs value types c#?

476


What do multicast delegates mean?

528


What is double c#?

535


How do I create a multi language, multi file assembly?

626


Why do we use virtual methods in c#?

493


What is difference between overloading and short circuiting?

470


What are the generation of Garbage Collection in C# .NET ?

562