狀態模式——State 更好的實現狀態機

                1. 概述     The intent of the STATE pattern is to distribute state-specific logic across classes that represent an object’s state.     STATE 設計模式的目的 是:將特定狀態相關的邏輯分散到一些類的狀態類中。   2. 實例     
相關文章
相關標籤/搜索