Esempio n. 1
0
    //Never send a human to do a machine's job.
    public static void Main()
    {
        Derived  start       = new Derived();
        Finished humanGetter = new Finished();

        start.ToString();
        humanGetter.printHuman();
        humanGetter.Print();
        MoreDerived morestart = new MoreDerived();
        IWord       test      = (IWord)morestart;

        test.Print();
        morestart.Print();
        MoreDerived2 morestart2 = new MoreDerived2();

        morestart2.Print();

        Console.ReadLine();
    }