public static void Main() { System.Console.WriteLine("Hello Interfaces"); abc refDemo = new InterfaceDemo6(); // note declared type! refDemo.xyz(); abc refSample = new Sample(); // note declared type! refSample.xyz(); }