标签:c++
在MSDN文档里,把Visual C++接口描述如下://Test.h class ITest { public: virtual void foo() = 0; }; //Test.cpp class TestImpl : public ITest { public: void foo() { cout << "FOO()" << endl; } virtual ~TestImpl() { cout << "Destroy" << endl; } }; ITest * makeTest() { return new TestImpl; }
标签:c++
原文地址:http://blog.csdn.net/darkmagician_potter/article/details/39933201