Both states are encapsulated as objects and both provide the rules effecting state transition.

  • 两者状态都封装到对象里,并且都提供了产生状态转换的规则。
目录 查词历史