请参阅: 说明
Memento类表示备忘录对象,它包含需要保存的状态。
Caretaker类负责管理备忘录对象,它包含一个Memento对象。
Copyright © 2024. All rights reserved.