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

Decorator

標籤 · 1 篇文章

Decorator — 動態疊加行為

Decorator 模式在不修改原始類別的前提下,透過包裝物件動態疊加行為,避免繼承導致的類別爆炸。

2018-08-07 ·
#DesignPattern #Structural #Decorator
← 回到所有標籤

© 2026 Bill Lin. All rights reserved.

github linkedin email