Пример #1
0
        static void Main(string[] args)
        {
            short a = 1;
            short b = 2;

            Swap(&a, &b);
            Console.WriteLine(a);
            Console.WriteLine(b);
            return;

            Lion l = new Lion();

            LionGrow(l);
            Console.WriteLine(l.Age);

            Cat c = new Cat();

            CatGrow(c);
            Console.WriteLine(c.Age);
        }
Пример #2
0
 static void GrowLion(Lion a)
 {
     a.Age++;
 }
Пример #3
0
 static void LionGrow(Lion a)
 {
     a.Age++;
 }