Esempio n. 1
0
        static void AbstractDemo()

        {
            TRex        trex        = new TRex();
            Triceratops triceratops = new Triceratops();

            trex.EatFood();
            trex.Move();

            trex.Swim();
            trex.Horns();

            trex.SkinType();
            trex.Teeth();

            triceratops.EatFood();
            triceratops.Move();

            triceratops.Swim();
            triceratops.Horns();

            triceratops.SkinType();
            triceratops.Teeth();
        }