C Sharp (C#) - Interfaces
What will be the output of the following code?
interface IExample { void Show(); }
class Demo : IExample {
public void Show() { Console.WriteLine("Hello Interface"); }
}
class Program {
static void Main() {
IExample obj = new Demo();
obj.Show();
}
}