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();
 }
Beispiel #2
0
    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();
    }