public override void VisitConcretElementA(ConcreteElementA elementA) { Console.WriteLine("元素{0}被{1}访问中....", elementA.GetType().Name, this.GetType().Name); //Anything else }
public abstract void VisitConcretElementA(ConcreteElementA elementA);