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 Warning C4694

Error Message

'class_1': a sealed abstract class cannot have a base-class 'base_class'

An abstract and sealed class cannot inherit from a reference type; a sealed and abstract class can neither implement the base class functions nor allow itself to be used as a base class.

For more information, see abstract (Visual C++), sealed, and Classes and Structs (Managed).


The following sample generates C4694.

// C4694.cpp
// compile with: /c /clr
ref struct A {};
ref struct B sealed abstract : A {};   // C4694

Community Additions

© 2015 Microsoft