コード例 #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();
        }