建造者模式

建造者模式 顧名思義在我們的生活中,一個建造團隊由設計師設計出圖紙,機器根據圖紙加工出東西的模型 在java中也是如此 首先我們需要一個設計師Designer public class Designer { private ArrayList<String> sequence = new ArrayList(); public CarModel getAModel(CarBuil
相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息