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 / vijay

In this scenario,
Whenever the child interface is called, by default
InterfaceMethod() of childe interface is gets called.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

i want the csharp questions&answeres

1488


Is a char?

454


What is the wildcard character in sql?

518


There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?

1581


Can constructor be private c#?

477






What is difference between ienumerable and list?

512


What are extender provider components? Explain how to use an extender provider in the project.

497


Can abstract class have constructor?

496


What is c# in asp net?

484


What is the interface in c#?

510


What is parseexact c#?

524


What is a di class?

527


Explain the working of serialization?

485


Is namespace a class?

492


What's the difference between a static method and a non static method c#?

496