Exemple #1
0
 public abstract void VisitLeaf(TreeLeaf leaf);
Exemple #2
0
 public override void VisitLeaf(TreeLeaf leaf)
 {
     this.Sum += leaf.Value;
 }
Exemple #3
0
 public override void VisitLeaf(TreeLeaf leaf)
 {
     this.Depth = 1;
 }