Manoj Bisht

Manoj Bisht

  • NA
  • 145
  • 0

Two interfaces with same function name

Mar 25 2009 8:14 AM
I'm executing following program, which is having two interfaces with same function name. So can anybody let me know actually which one or which interface's function is being executed or called

interface intf1
{
void get();
}
interface intf2
{
void get();
}
class A : intf1,intf2
{
public void get()
{
Console.WriteLine("Hello");

}
}



static void Main(string[] args)
{
A e = new A();
e.get();
Console.ReadLine();
}