Interviews6 answers
Let's say i have two interfaces : interface1 and interface 2, they both have method called MyMethod(), Let's say we have class1 , with implementing interface1 and interface2 . is it possible?
6 Answers
Yes, it's possible and we can achieve this. this is called Explicit interface calling and we call both method with interface like
interface1.MyMethod1()
Chandan PrasadPosted Aug 6, 2018, 8:06 PM EDT
yes, it is possible. both interface will reference to single method.
Mehul PrajapatiPosted Jan 27, 2018, 6:51 AM EST
Yes we can do, that is called explicit interface calling:
suppose you are calling MyMethod for interface1
then you need to write
Interface1.MyMethod
and for interface2 you need to write
Interface2.MyMethod
Hamid KhanPosted Apr 14, 2017, 10:58 AM EDT
yes, we need to define Fully qualified method in class.
As
interface1.mymethod()
{
}
Jigar MalikPosted Feb 28, 2017, 12:38 AM EST
C
Jigar MalikPosted Feb 28, 2017, 12:37 AM EST
Yes , it is possible, interface implementing class can differentiate method using following syntax in the interface implementing class
Definition of interface1. MyMethod()
Definition of interface2.MyMethod()
ashok rathodPosted Apr 25, 2016, 1:20 AM EDT



