August 2018
Intermediate to advanced
248 pages
5h 51m
English
In many situations, we need a way to easily take a snapshot of the internal state of an object, so that we can restore the object with it when needed. Memento is a design pattern that can help us implement a solution for such situations.
The Memento design pattern has three key components:
Memento shares many similarities with the Command pattern.