設計模式 之 《原型模式》

  GOOD:從一個對象再創建另外一個可定製的對象,而無需知道任何創建的細節。並能提高創建的性能。  說白了就COPY技術,把一個對象完整的COPY出一份。   #ifndef __PROTOTYPE_MODEL__ #define __PROTOTYPE_MODEL__ #include <iostream> #include <string> using namespace std; cl
相關文章
相關標籤/搜索