October 18, 2003

Behavioral Pattern – Memento

A memento is an alternate representation of another object, often in a format suitable for transmission across an external interface.

• Provides the ability to restore an object to its previous state

Example:

Finite sate machine or random number generator

Links: