共用方式為


編譯器警告 (層級 3) C4570

'type' : 未明確宣告為抽象,但具有抽象函式

包含 抽象函式的類型應該本身標示為抽象

範例

下列範例會產生 C4570。

// C4570.cpp
// compile with: /clr /W3 /c
ref struct X {   // C4570
// try the following line instead
// ref class X abstract {
   virtual void f() abstract;
};