C Sharp (C#) - Interfaces
Given this code, what will be the output?
interface IA { void Show() => Console.WriteLine("IA"); } interface IB : IA { void Show() => Console.WriteLine("IB"); } class C : IB { } class Program { static void Main() { IA a = new C(); IB b = new C(); a.Show(); b.Show(); } }
