【java設計模式】之 工廠(Factory)模式

1.工廠模式的定義         工廠模式使用的頻率非常高,我們在開發中總能見到它們的身影。其定義爲:Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to
相關文章
相關標籤/搜索