ashok rathod
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?
By ashok rathod in .NET on Apr 25 2016
  • Chandan Prasad
    Aug, 2018 7

    Yes, it's possible and we can achieve this. this is called Explicit interface calling and we call both method with interface likeinterface1.MyMethod1()

    • 0
  • Mehul Prajapati
    Jan, 2018 27

    yes, it is possible. both interface will reference to single method.

    • 0
  • Hamid Khan
    Apr, 2017 14

    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

    • 0
  • Jigar Malik
    Feb, 2017 28

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

    • 0
  • Jigar Malik
    Feb, 2017 28

    C

    • 0
  • ashok rathod
    Apr, 2016 25

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

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS