11 2018 档案
摘要:前言 在 "上一篇" 中我们学习了行为型模式的备忘录模式(Memento Pattern)和状态模式(Memento Pattern)。本篇则来学习下行为型模式的最后两个模式,观察者模式(Observer Pattern)和空对象模式模式(NullObject Pattern)。 观察者模式 简介
阅读全文
摘要:前言 在 "上一篇" 中我们学习了行为型模式的策略模式(Strategy Pattern)和模板模式(Template Pattern)。本篇则来学习下行为型模式的两个模式,备忘录模式(Memento Pattern)和状态模式(Memento Pattern)。 备忘录模式 简介 备忘录模式(Me
阅读全文
摘要:前言 在 "上一篇" 中我们学习了行为型模式的访问者模式(Visitor Pattern)和中介者模式(Mediator Pattern)。本篇则来学习下行为型模式的两个模式,策略模式(Strategy Pattern)和模板模式(Template Pattern)。 策略模式 简介 策略模式(St
阅读全文
摘要:前言 在 "上一篇" 中我们学习了行为型模式的解释器模式(Interpreter Pattern)和迭代器模式(Iterator Pattern)。本篇则来学习下行为型模式的两个模式,访问者模式(Visitor Pattern)和中介者模式(Mediator Pattern)。 访问者模式 简介 访
阅读全文