コード例 #1
0
 public override void Add(Component c)
 {
     throw new ApplicationException("Cannot add to a branch");
 }
コード例 #2
0
 public override void Remove(Component component)
 {
     children.Remove(component);
 }
コード例 #3
0
 public override void Add(Component component)
 {
     children.Add(component);
 }
コード例 #4
0
 public abstract void Remove(Component c);
コード例 #5
0
 public abstract void Add(Component c);
コード例 #6
0
 public override void Remove(Component c)
 {
     throw new ApplicationException("Cannot remove from a branch");
 }