原书出处
Software Architecture in Practice, 4th Edition
13 易用性
In this way, the caretaker knows nothing about how state is managed; the memento is simply an abstraction that the caretaker employs. Benefits: • The obvious benefit of this pattern is that you delegate the complicated process of implementing undo, and figuring out what state to preserve, to the class that is actually creating and managing that state.
原书定位详情
来源:a19c7933-4eda-4176-aebd-30fe7e1ad292
正文位置:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch13.html
EPUB SHA-256:7e9d0139f6c82a6fe31a29bb9182f06ae35b15739f8b255fefe1363a3dcc7139