public void Accept(Visitor visitor) { foreach (Element e in elements) { e.Accept(visitor); } }
public abstract void Accept(Visitor visitor);
public override void Accept(Visitor visitor) { visitor.VisitConcreteElementB(this); }
public void accept(Visitor visitor) { visitor.visit(this); }