반응형 memento 패턴1 [DesignPattern] memento pattern The memento pattern is a software design pattern that provides the ability to restore an object to its previous state (undo via rollback). The memento pattern is implemented with three objects: the originator, a caretaker and a memento. The originator is some object that has an internal state. The caretaker is going to do something to the originator, but wants to be able to undo the change. The .. 2013. 12. 16. 이전 1 다음 반응형