Fork me on GitHub
摘要: 装饰模式(decorator) 设计模式使用的例子 https://github.com/LinkinStars/DesignPatternsAllExample 一、定义 动态地给一个对象增加一些额外的职责,就增加对象功能来说,装饰模式远比生成子类实现更加灵活。装饰模式是一种对象结构型模式。 二、 阅读全文
posted @ 2017-10-08 16:10 LinkinStar 阅读(466) 评论(0) 推荐(1) 编辑