Beispiel #1
0
        static void Main(string[] args)
        {
            Lion  lion  = new Lion();
            Tiger tiger = new Tiger();

            tiger.SetMe("tiger", 100);
            lion.SetMe("lion", 200);

            tiger.Show();
            lion.Show();
        }
Beispiel #2
0
        static void Main(string[] agrs)
        {
            Lion objLion = new Lion();

            objLion.SetMe("Lion", 100);
            objLion.Show();
            Tiger obgTiger = new Tiger();

            obgTiger.SetMe("Tiger", 200);
            obgTiger.Show();
        }