Memento Pattern
  • is a behavioral design pattern that lets you save and restore the previous state of an object without revealing the details of its implementation

Code Structure

Code Example

Comparisons