Compiler Warning C4694
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Compiler Warning C4694.
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, sealed, and Classes and Structs.
The following sample generates C4694.
// C4694.cpp
// compile with: /c /clr
ref struct A {};
ref struct B sealed abstract : A {}; // C4694
Show: