设计模式-Visitor模式戏说

来源:互联网 发布:nero软件如何打开 编辑:程序博客网 时间:2024/05/04 16:03

 

 

   在原有Element类的基础上扩展功能,使用预先放置visitor类引用,而不修改Element原有结构。

 

 

原创粉丝点击