不能有析构
https://docs.microsoft.com/en-us/cpp/cpp/interface?view=msvc-170
A Microsoft C++ interface can be defined as follows:
Can inherit from zero or more base interfaces.
Cannot inherit from a base class.
Can only contain public, pure virtual methods.
Cannot contain constructors, destructors, or operators.
Cannot contain static methods.
Cannot contain data members; properties are allowed.
【 在 dormouseBHU 的大作中提到: 】
: IBase1 加个析构函数不行吗?
: __interface IBase1{ void F(); ~IBase();}
:
--
FROM 114.241.228.*