Пример #1
0
        static void Main(string[] args)
        {
            Lion  lion  = new Lion();
            Tiger tiger = new Tiger();

            lion.Roar();
            lion.SeeMyPrey();
            lion.SmellMyPrey();
            tiger.Roar();
            tiger.SeeMyPrey();
            tiger.SmellMyPrey();
        }
Пример #2
0
        static void Main(string[] args)
        {
            Cat cat = new Cat();

            cat.Roar();

            Tiger tiger = new Tiger();

            tiger.Roar();

            Lion lion = new Lion();

            lion.Roar();
        }