예제 #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);