学习高校课程-软件设计模式-访客模式(lec13)
Visitor: Problem
Example: exporting the graph into XML format
示例:将图表导出为 XML 格式
Visitor: Solution
Place the new behavior into a separate class called visitor
The original object passed to the visitor’s method as an argument