예제 #1
0
        static void Main(string[] args)
        {
            Lion obj = new Lion();

            obj.AnimalSound();
            obj.Eat();
        }
예제 #2
0
        static void Main(string[] args)
        {
            Tiger obj1 = new Tiger();

            obj1.Show();
            Lion obj2 = new Lion();

            obj2.Show();
        }
예제 #3
0
        static void Main(string[] args)
        {
            Lion  lionTest  = new Lion(45.7, "Simba");
            Tiger tigerTest = new Tiger(30, "Shere Khan");

            lionTest.show();
            Console.WriteLine("--------------------------------");
            tigerTest.show();

            Console.ReadKey();
        }