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 lazy keyword in c#?
What are satellite assemblies?
What is a constructor in c#?
What is lazy class in c#?
List some Advantages of switch-case over if else?
Explain about Threading Types.
What is cls, cts and clr in net?
Explain the importance and use of each, version, culture and publickeytoken for an assembly.
Is c# a strongly-typed language?
How do you sort an array in c#?
Explain briefly the difference between value type and reference type?
Name which controls do not have events?
Is constructor a static method?
What is the task perform by clr?
How do you type a null character?