public void Remove(ICompositeCompenent c) { children.Remove(c); }
public void Remove(ICompositeCompenent c) { Console.WriteLine("Cannot remove from a leaf"); }
public void Add(ICompositeCompenent c) { children.Add(c); }
public void Add(ICompositeCompenent c) { Console.WriteLine("Cannot add to a leaf"); }