A.觀察者(Observer)模式 B.迭代器(Iterator)模式 C.職責鏈(Chain of Responsibility)模式 D.策略(Strategy)模式
A.簡單工廠模式(Simple Factory) B.抽象工廠模式(Abstract Factory) C.建造者模式(Builder) D.單例模式(Singleton)
以下哪個設計模式最符合以下的場景說明:() 能使客戶端獨立于產(chǎn)品的創(chuàng)建過程,并且在系統(tǒng)中引入新產(chǎn)品時無需對客戶端進行修改。
A.工廠模式(Factory) B.狀態(tài)模式(State) C.享元模式(Flyweight) D.原型模式(Prototype)