用ACYCLIC VISITOR解决Shape排序的问题

swimmer2000 2016-05-10 04:57:49
看电子书《Agile-Principles-Patterns-and-Practices-in-C#》的第176页(OCP一章),有这样一句:
It is possible to solve this problem by using the ACYCLIC VISITOR pattern described in Chapter 35. Showing that solution now
would be getting ahead of ourselves a bit. I'll remind you to come back here at the end of that chapter.

有哪位大侠能展示一下如何使用ACYCLIC VISITOR模式解决Shape排序输出的问题吗?
最好有UML图或者示例代码。

谢谢!

...全文
100 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
swimmer2000 2016-05-11
  • 打赏
  • 举报
回复
我想到了一个方案,在我博客http://blog.csdn.net/swimmer2000/article/details/51372285里, 如果没人评论,过几天我就结贴。

110,538

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧