Example #1
0
        static void AbstractDemo()
        {
            Trex        trex        = new Trex();
            Triceratops triceratops = new Triceratops();

            trex.EatFood();
            trex.Move();
            trex.Speed();
            trex.Habitat();

            triceratops.EatFood();
            triceratops.Move();
            triceratops.Speed();
            triceratops.Habitat();
        }