圖解設計模式:抽象工廠

僞代碼:code

服裝廠 factory = new 低端服裝廠();
T恤衫 t = factory.生產T恤衫();
短褲 p = factory.生產短褲();
相關文章
相關標籤/搜索