Пример #1
0
 public override void Remove(Component c)
 {
     Console.WriteLine("Cannot remove from a leaf");
 }
Пример #2
0
 public override void Add(Component c)
 {
     Console.WriteLine("Cannot add to a leaf");
 }
Пример #3
0
 public override void Remove(Component c)
 {
     children.Remove(c);
 }
Пример #4
0
 public override void Add(Component c)
 {
     children.Add(c);
 }
Пример #5
0
 public abstract void Remove(Component c);
Пример #6
0
 public abstract void Add(Component c);