摘要:
#include <iostream>using namespace std;class ProtoType{public: ProtoType(){} virtual ~ProtoType(){} virtual ProtoType* Clone() = 0;};class ConcreteClass1 : public ProtoType{public: int field1; int field2;public: ConcreteClass1() : field1(0) , field2(0) { ... 阅读全文