Exemple #1
0
        public virtual void AcceptVisitor(IWheelVisitor visitor)
        {
            _spokes.AcceptVisitor(visitor);

            _bearings.AcceptVisitor(visitor);

            visitor.Visit(this);
        }
Exemple #2
0
 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
 }