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
Is datetime a value type in c#?
Define thread?
What is arraylist c#?
What types of object can I throw as exceptions?
What is difference between arraylist and list in c#?
Why do we need escape characters?
List down the access modifiers available in c#?
Explain the serialization in .net
How do you use nullable?
Can we extend sealed class in c#?
Give 2 scenarios where static constructors can be used?
What is an Interface in C#?
Explain the difference between arraylist and array and in c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What is datetime parse in c#?