请问C++cli中的析构函数和终结函数的区别是什么?
阿神
阿神 2017-04-17 11:56:54
0
1
561
public ref class MyClass
{
public:
MyClass();
virtual ~MyClass();

protected:
    !MyClass();

private:
    CMyClass* _CMyClass;
};

还有就是这里面的析构函数和C++中的析构函数意义是否相同呢?
是否也需要加上virtual?

阿神
阿神

闭关修行中......

reply all(1)
小葫芦

I have never learned C++. In other languages, it is the last method called after a class is instantiated

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template