Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
Without violating encapsulation, capture and externalize an object's internal state so that the object can be restored to this state later.
Memento
- Stores internal state of the Originator object.
- Protect against access by objects of other than the originator.
Originator
- Creates a memento containing a snapshot of its current internal state.
- Uses the memento to restore its internal state
Caretaker
- Responsible for the memento's safekeeping
- Never operates on or examines the contents of a memento.
"A memento is an alternate representation of another object,often in a format suitable for transmission across an external interface."
Matthew Heaney