public override void Remove(Component c)
 {
     children.Remove(c);
 }
 public override void Add(Component c)
 {
     children.Add(c);
 }
Exemple #3
0
 public override void Remove(Component c)
 {
     Console.WriteLine("Can not remove from a leaf.");
 }
Exemple #4
0
 public override void Add(Component c)
 {
     Console.WriteLine("Can not add to a leaf.");
 }
 public abstract void Remove(Component c);
 public abstract void Add(Component c);