Memento Pattern
This lesson discusses how the state of an object can be exported as a snapshot without exposing the internals of the object.
We'll cover the following
What is it ?
The literal meaning of memento is an object kept as a reminder or souvenir of a person or an event. The memento pattern let's us capture the internal state of an object without exposing its internal structure so that the object can be restored to this state later. In some sense we are saving a token or a memento of the original object and then recreating the object's state using the memento at a later time.
Get hands-on with 1400+ tech skills courses.