Ejemplo n.º 1
0
 public void Visit(IPartInterface part)
 {
     if (part.GetAnimals().Count == 0)
     {
         EmptyEnclosures.Add(part);
     }
 }
Ejemplo n.º 2
0
 public void RemoveEnclosure(IPartInterface enclosure)
 {
     enclosures.Remove(enclosure);
 }
Ejemplo n.º 3
0
 public void AddEnclosure(IPartInterface enclosure)
 {
     enclosures.Add(enclosure);
 }