A Gang of Four behavioral design pattern that captures and externalizes an object's internal state without violating its encapsulation, so the object can later be restored to that saved state, most often used to implement undo.
Facts
Core PrincipleCaptures and externalizes an object's internal state, without violating its encapsulation, so the object can later be restored to that state. 2 Connections
Associated With
Erich Gamma, Pioneers Erich Gamma co-authored the 1994 Design Patterns book that named and catalogued the Memento pattern among the original 23.
In Field
Sources
1. Wikipedia: Design Patterns (book)
Wikimedia FoundationLead section, first sentenceQuote, Lead section, first sentence
Design Patterns: Elements of Reusable Object-Oriented Software (1994) is a software engineering book describing software design patterns.
View the Source 2. Wikipedia: Memento Pattern
Wikimedia FoundationLead section, first sentenceQuote, Lead section, first sentence
The memento pattern is a software design pattern in the field of object-oriented programming that allows reverting the state of an object.
View the Source Reader Challenges (0)
No disputes yet. Spotted an error or a better source? Open the first one.
Sign in to dispute this or suggest a correction.