共用方式為


編譯器錯誤 C3634

'function' : 無法定義 Managed 或 WinRTclass 的抽象方法

抽象方法可以在 Managed 或 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
}