Delen via


Compilerfout C3283

'type': een interface kan geen exemplaarconstructor hebben

Opmerkingen

Een CLR-interface kan geen exemplaarconstructor hebben. Een statische constructor is toegestaan.

Example

In het volgende voorbeeld wordt C3283 gegenereerd:

// C3283.cpp
// compile with: /clr
interface class I {
   I();   // C3283
};

Mogelijke oplossing:

// C3283b.cpp
// compile with: /clr /c
interface class I {
   static I(){}
};