此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
“constructor”:接口不能有构造函数
Visual C++ 接口不能有构造函数。
以下示例生成 C2846:
// C2846.cpp // compile with: /c __interface C { C(); // C2846 constructor not allowed in an interface };
此页面是否有帮助?