public virtual void AcceptVisitor(IWheelVisitor visitor) { _spokes.AcceptVisitor(visitor); _bearings.AcceptVisitor(visitor); visitor.Visit(this); }
public virtual void AcceptVisitor(IWheelVisitor visitor) //added new 3-5-19 Visitor Design Pattern { _spokes.AcceptVisitor(visitor); //added new 3-5-19 Visitor Design Pattern _bearings.AcceptVisitor(visitor); //added new 3-5-19 Visitor Design Pattern visitor.Visit(this); //added new 3-5-19 Visitor Design Pattern }