摘要: #include using namespace std;#define DESTORY_POINTER(ptr) if (ptr) { delete ptr; ptr = NULL; }class ProductFamilyA{public: virtual ~ProductFamilyA(... 阅读全文
posted @ 2014-12-08 17:13 stanley19861028 阅读(157) 评论(0) 推荐(0) 编辑
摘要: class Product{public: virtual ~Product() {} virtual void DoSomething()=0;};class ProductA : public Product{public: ProductA() {} ~ProductA... 阅读全文
posted @ 2014-12-08 11:55 stanley19861028 阅读(127) 评论(0) 推荐(0) 编辑