Gul Md Ershad
The implemented method would be of which interface ? There are two interfaces B and C each having the same method public m1() class A implements B and C. If class A has to implement method m1, the implemented method would be of which interface ?
By Gul Md Ershad in .NET on Nov 15 2015
  • sarita rajput
    Jul, 2016 4

    Use B.m1() and C.m1()

    • 0
  • sarita rajput
    Jul, 2016 4

    Use B.m1() and C.m1()

    • 0
  • Gul Md Ershad
    Nov, 2015 15

    As long as they have the same signatures the compiler will consider them as one method. In case that one of them has a different return type it would result in compile error. Overridden method will be applicable for both the interface.

    • 0