Memento

Sometimes It is necessary to externalize the state of an object in order to reverse actions. The memento pattern can be used to do this.

Quick Reference

|---|---| |Pattern Name | Memento | |Other Names | Token | |Classification | Object Behavioral | |Intent | externally stores the state of an object so that an object can be restored to a previous state. |

General Structure

Example

results matching ""

    No results matching ""