1

Suppose I have 2 interfaces, interface IOne -

interface IOne{
   public method();
}

and interface ITwo -

interface ITwo{
   public method();
}

All we know interface is a contract for implementing class which have to be met by the implementing class. Now If a class X implements both of the interface - IOne and ITwo which interface method is actually implemented? Or in other word which contract is fulfilled?

Thanks in advance.

Razib
  • 10,521
  • 10
  • 50
  • 75

0 Answers0