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
what is a static constructor?
Compare and contrast between the System.Array.CopyTo() and Clone()?
Explain the role of the datareader class in ado.net connections?
Explain the difference between .net and c#?
What is the advantage of static class in c#?
What is lazy t?
What is the importance of closing an ado.net application?
Can we extend static class in c#?
Explain how obfuscator works in .net
In howmany ways can you deploy an assembly?
Explain About namespaces
Is there any sample c# code for simple threading?
How big is int16?
what is main function of alternate teamplate of datalist?
What are scriptable objects?