The next stop on our voyage through the Design Patterns galaxy takes us to the Memento design pattern , another of the design patterns found in the GoF catalog. We will find this design pattern useful when we need to be able to reset the internal state of an object to some previous setting.
We will explore the Memento design pattern through an example where resetting attributes of a class to some previous values might become necessary during the normal use of an application.
Chess Anyone?
Computer chess games are available via chess game applications that can be ...