public void Accept(ICarElementVisitor visitor) { for (int i = 0; i < elements.Length; i++) { elements[i].Accept(visitor); } visitor.visit(this); }
public void accept(ICarElementVisitor visitor) { foreach (ICarElement element in this.getElements()) { element.accept(visitor); } visitor.visit(this); }
public void Accept(ICarElementVisitor visitor) { visitor.visit(this); }