C Sharp (C#) - Interfaces
What will be the output of the following C# code?
interface IA { void Show(); }
interface IB { void Show(); }
class Demo : IA, IB {
void IA.Show() { Console.WriteLine("IA Show"); }
void IB.Show() { Console.WriteLine("IB Show"); }
}
class Program {
static void Main() {
Demo d = new Demo();
((IA)d).Show();
((IB)d).Show();
}
}