Пример #1
0
    public static void Main()
    {
        System.Console.WriteLine("Hello Interfaces");
        Mango refDemo = new Mango();

        refDemo.mymethod();
        Orange refSample = new Orange();

        refSample.mymethod();
    }
    public static void Main()
    {
        System.Console.WriteLine("Hello Interfaces");
        abc refabc = new Mango();

        refabc.mymethod();
        abc refabd = new Orange();

        refabd.mymethod();
        Console.ReadLine();
    }