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?
ashok rathod
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
yes, we need to define Fully qualified method in class. As interface1.mymethod() {}
C
Yes , it is possible, interface implementing class can differentiate method using following syntax in the interface implementing classDefinition of interface1. MyMethod() Definition of interface2.MyMethod()