摘要: GOOD:从一个对象再创建另外一个可定制的对象,而无需知道任何创建的细节。并能提高创建的性能。说白了就COPY技术,把一个对象完整的COPY出一份。#ifndef __PROTOTYPE_MODEL__#define __PROTOTYPE_MODEL__#include #include using namespace std;class Prototype{private: string m_strName;public: Prototype(string strName){ m_strName = strName; } Prototype(){ m_strName = ... 阅读全文
posted @ 2013-10-31 00:23 解放1949 阅读(133) 评论(0) 推荐(0) 编辑