Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Compiler Error C3634

Error Message

'function' : cannot define an abstract method of a managed class

An abstract method can be declared in a managed class, but it cannot be defined.

The following sample generates 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
}

Managed Extensions for C++

The following sample generates C3634:

// C3634b.cpp
// compile with: /clr:oldSyntax /LD
#using <mscorlib.dll>

__gc class C {
   virtual void f() = 0;
};

void C::f() {   // C3634 - don't define managed class' pure virtual method
}

Community Additions

ADD
Show:
© 2015 Microsoft