MEMENTO

xiaoxiao2021-03-06  57

Benefits: • IT Preserves Encapsulation Boundaries. • IT Simplifies The Originator.

Applicable Scenarios: • A snapshot containing enough information regarding the state of an object can be saved so that it can be restored to the complete state using the snapshot information later • Using a direct interface to obtain the state would impose implementation details that would break. The rules of enqsulation for the object.

转载请注明原文地址:https://www.9cbs.com/read-117181.html

New Post(0)