public void Visit(IPartInterface part) { if (part.GetAnimals().Count == 0) { EmptyEnclosures.Add(part); } }
public void RemoveEnclosure(IPartInterface enclosure) { enclosures.Remove(enclosure); }
public void AddEnclosure(IPartInterface enclosure) { enclosures.Add(enclosure); }