4
Reply

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

ashok rathod

Apr 25, 2016
544
0

    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 Khan
    April 14, 2017
    0

    yes, we need to define Fully qualified method in class. As interface1.mymethod() {}

    Jigar Malik
    February 28, 2017
    0

    C

    Jigar Malik
    February 28, 2017
    0

    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()

    ashok rathod
    April 25, 2016
    0