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

Is datetime a value type in c#?

495


Define thread?

586


What is arraylist c#?

468


What types of object can I throw as exceptions?

543


What is difference between arraylist and list in c#?

438






Why do we need escape characters?

487


List down the access modifiers available in c#?

487


Explain the serialization in .net

552


How do you use nullable?

506


Can we extend sealed class in c#?

493


Give 2 scenarios where static constructors can be used?

491


What is an Interface in C#?

548


Explain the difference between arraylist and array and in c#?

506


what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?

1508


What is datetime parse in c#?

519