Beispiel #1
0
        static void AbstractDemo()
        {
            TRex        trex        = new TRex();
            Triceratops triceratops = new Triceratops();

            trex.EatFood();
            trex.Move();
            trex.Fights();
            trex.Sleeps();
            trex.SkinType();
            trex.Teeth();


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