此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
“function”:不能定义托管类或 WinRT 类的抽象方法
可在托管或 WinRT 类中声明一个抽象方法,但不能定义它。
以下示例生成 C3634:
// C3634.cpp // compile with: /clr ref class C { virtual void f() = 0; }; void C::f() { // C3634 - don't define managed class' pure virtual method }
此页面是否有帮助?