What is this piece of code printing "Hi there" as output? And which of the interface's method is getting executed? Please help me understand it's output..
interface I1
{
void display();
}
interface I2
{
void display();
}
class A : I1, I2
{
public void display()
{
Console.WriteLine("Hi there");
}
}
class Program
{
static void Main(string[] args)
{
A a = new A();
a.display();
Console.ReadLine();
}
}