**备忘录(Memento)模式**,也叫快照(Snapshot)模式,英文翻译是 Memento Design Pattern。在 GoF 的《设计模式》一书中,备忘录模式是这么定义的:
> Captures and externalizes an object’s internal state so that it can be restored later, all without ...
职责链模式也叫责任链模式。职责连模式的英文翻译是 Chain Of Responsibility Design Pattern。在 GoF 的《设计模式》中,它是这么定义的:
> Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle t...