2013年8月19日
摘要: #include using namespace std;class CBase{public: virtual void PureVirtualMethod() = 0; virtual void VirtualMethod() { cout PureVirtualMethod(); b->CommonMethod(); b->VirtualMethod();}输出:Derived version of pure virtual methodBase version of common functionDerived version of comm... 阅读全文
posted @ 2013-08-19 21:35 bluecoffee 阅读(1452) 评论(0) 推荐(0) 编辑