public override void Remove(Familia familia) { this._filho.Remove(familia); }
public override void Add(Familia familia) { this._filho.Add(familia); }
public void ArvoreFamilia(Familia filho) { Console.WriteLine($"RESULT: {filho.Operation()}\n"); }
// Thanks to the fact that the child-management operations are declared // in the base Component class, the client code can work with any // component, simple or complex, without depending on their concrete // classes. public void ArvoreFamilia2(Familia familia1, Familia familia2) { Console.WriteLine($"RESULT: {familia1.Operation()} + {familia2.Operation()}"); }
public virtual void Remove(Familia familia) { throw new NotImplementedException(); }