Bill.Lin's Notes
  • Me
  • Posts
  • Categories
  • Tags
  • Search
#

State

標籤 · 1 篇文章

State — 讓物件隨狀態改變行為

State 模式將狀態相關行為封裝成獨立類別,消除大型 if-else/switch,物件轉換狀態時行為自動切換。

2018-08-07 ·
#DesignPattern #Behavioral #State
← 回到所有標籤

© 2026 Bill Lin. All rights reserved.

github linkedin email