示例#1
0
        public int Count()
        {
            int count = 1;

            if (volary != null)
            {
                count += volary.Count();
            }
            return(count);
        }
示例#2
0
 public string buildVolary()
 {
     if (volary != null)
     {
         int count = 0;
         count = volary.Count();
         Console.WriteLine(count);
         if (count < 4)
         {
             volary.buildVolary();
             Console.WriteLine("vbt");
         }
         else
         {
             room.buildVolary();
             Console.WriteLine("vbior");
         }
     }
     else
     {
         volary = new Volary();
     }
     return("Новий вольер збудовано.");
 }