Memento

Home > Computer Science > Software Engineering > Software design patterns > Memento

The Memento design pattern allows us to capture and store the internal state of an object without violating encapsulation and later restore it when needed.