标签:
class Prototype { public: virtual ~Prototype(void){}; virtual Prototype* clone(void) = 0; }; class Prototype1: public Prototype { public: Prototype1(void); ~Prototype1(void); public: virtual Prototype* clone(void); private: }; class Prototype2: public Prototype { public: Prototype2(void); ~Prototype2(void); public: virtual Prototype* clone(void); private: };
标签:
原文地址:http://www.cnblogs.com/foreverstars/p/4690102.html