Ejemplo n.º 1
0
        static void AbstractDemo()
        {
            TRex        trex        = new TRex();
            Triceratops triceratops = new Triceratops();

            trex.EatFood();
            trex.Sick();
            trex.Teeth();
            trex.Move();

            triceratops.EatFood();
            triceratops.SkinType();
            triceratops.Teeth();
            triceratops.Dead();
            triceratops.Move();
        }