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 difference between c sharp and c#?
Why interface is required?
Define a jagged array in c#?
What is the difference between final finally and finalize in c#?
What is the difference between “constant” and “readonly” variables in c#?
Can we set image Source dynamically using C# in WPF application?
Explain About .Net remoting
What is delegates in c# and uses of delegates?
Explain circular reference in c#?
Can an abstract class have a constructor c#?
How do you remove white spaces from a string?
Do unused Namespaces in c# affect run-time performance?
What is cshtml extension?
Can partial class be inherited?
what is a structure in c#