March 2002
Intermediate to advanced
496 pages
8h 51m
English
The MEMENTO pattern lets you capture an object's state so you can restore the object later. The means of storage may depend on whether you need to be able to restore an object after a few clicks and keystrokes or after days or years. The most common reason for saving and restoring objects during an application session is the support of undo operations. In such a case, you can store an object's state in another object, possibly a clone. To let an object persist across sessions, you can save the memento either through object serialization or as text that you will parse to restore the object.
Read now
Unlock full access