0
Answer

Two interfaces with same function name

Manoj Bisht

Manoj Bisht

15y
3.4k
1
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();
}