memento

  • 备忘录模式

    Without violating cncapsulation, capture and externalize an object’s internal state so that the object can be restored to this state later.(在不破坏封装性的前提下,捕获一个对象的内部状态,并在该对象之外保存这个状态。)

本文总阅读量 次 本站总访问量 次 本站总访客数