public void Go() { Element eleA = new ElementA(); Visitor v = new VisitorOtherImpl(); eleA.Accept(v); Element eleB = new ElementB(); eleB.Accept(v); }
public virtual void Visit(ElementA element) { Console.WriteLine("Base visit A"); }
public override void Visit(ElementA element) { Console.WriteLine("Impl visitor A"); base.Visit(element); }