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

FactoryMethod

標籤 · 1 篇文章

Factory Method — 讓子類決定實例化哪個類別

GoF Factory Method 模式:定義建立物件的介面,將具體類別的決策交給子類,並釐清與 Simple Factory、Abstract Factory、靜態工廠的差異

2018-08-07 ·
#DesignPattern #Creational #FactoryMethod
← 回到所有標籤

© 2026 Bill Lin. All rights reserved.

github linkedin email