The Wayback Machine - https://web.archive.org/web/20201011233747/https://github.com/darpan1118/MementoPattern
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

Memento Pattern

Memento is another Behavioral Pattern. This pattern can be used to create snapshots of an object so that we can revert to it. Object whose state we want to save, creates a snapshot or memento of itself and passes it's reference to Caretaker object. This caretaker object saves this memento in a container. These states in Caretaker object are kept until object wants revert itself to that state.

To boil it down, "The main purpose of the Memento pattern is to save the internal state of an object and the possibility of restoring it again if necessary, without disturbing encapsulation."

About

No description or website provided.

Topics

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.