Exemplo n.º 1
0
        static void Main(string[] args)
        {
            Yard yard    = new Yard();
            Dog  kekso   = new Dog();
            Dog  riusa   = new Dog();
            Koi  zlty    = new Koi();
            Koi  cerveny = new Koi();
            Koi  biely   = new Koi();

            yard.Add(kekso);
            yard.Add(riusa);
            yard.Add(zlty);
            yard.Add(cerveny);
            yard.Add(biely);      /* malo by zhucat na chybe, ze 5-ho do pola animal uz neumiestni*/
            yard.Remove(cerveny); /* malo by odobrat cerveneho z animal pola */
            yard.Add(biely);      /* malo by pridat bieleho do pola animal */
        }