Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 837 Bytes

compiler-error-c3612.md

File metadata and controls

30 lines (23 loc) · 837 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C3612
Compiler Error C3612
11/04/2016
C3612
C3612
aa6e3a2b-4afa-481c-98c1-1b6d1f82f869

Compiler Error C3612

'type': a sealed class cannot be abstract

Types defined by using value are sealed by default, and a class is abstract unless it implements all methods of its base. A sealed abstract class can neither be a base class nor can it be instantiated.

For more information, see Classes and Structs.

Example

The following sample generates C3612:

// C3612.cpp
// compile with: /clr /c
value struct V: public System::ICloneable {};   // C3612

// OK
value struct V2: public System::ICloneable {
   Object^ Clone();
};