Dezign Patterns

Memento Design Pattern

The Memento Pattern captures and externalizes an object's internal state without violating encapsulation so that the object can be restored to this state later.