示例#1
0
 public override void Remove(Familia familia)
 {
     this._filho.Remove(familia);
 }
示例#2
0
 public override void Add(Familia familia)
 {
     this._filho.Add(familia);
 }
示例#3
0
 public void ArvoreFamilia(Familia filho)
 {
     Console.WriteLine($"RESULT: {filho.Operation()}\n");
 }
示例#4
0
 // 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()}");
 }
示例#5
0
 public virtual void Remove(Familia familia)
 {
     throw new NotImplementedException();
 }