December 2017
Intermediate to advanced
468 pages
13h 12m
English
This pattern suggests capturing and externalizing an object's internal state without violating encapsulation principles; so, we can restore the captured object.

The preceding diagram depicts the structure of the memento pattern and a sample implementation for a calculator application. The Caretaker interface helps restore the previous operation that's handled in the <<Calculator>> concrete class.
These are the benefits:
Impacts are as follows:
Read now
Unlock full access