Questions tagged [memento]
The memento tag has no usage guidance.
3
questions
2
votes
2
answers
223
views
Memento Pattern with abstract base classes and partial restoring only
Here I illustrate the use of the Memento Pattern to restore certain (but not all) data of a class that has data in abstract base classes. A Spellcaster has spells ...
2
votes
0
answers
109
views
Is this a valid implementation of Memento Pattern in C#?
I've been studying design patterns from GOF for a few weeks, especially in C#, and I'm struggling with Memento Pattern. I know there are a lot of C# implementations on the web, but I came up with my ...
1
vote
1
answer
122
views
Memento Pattern between sister classes
The following is my usage of the Memento Pattern when one class uses the copy constructor of a sister class (a separate derived class of the base class) and wishes to revert to the previous class. ...