設計模式學習筆記(三)工廠方法模式

工廠方法模式:  Define an interface for creating an object, but let subclassed decide which class to instantiate. Factory Method lets a class defer instantiation to subclassed.(定義一個用於創建對象的接口,讓子類決定實例化哪一個類。工廠方
相關文章
相關標籤/搜索