public int Count() { int count = 1; if (volary != null) { count += volary.Count(); } return(count); }
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("Новий вольер збудовано."); }