הערה
גישה לעמוד זה דורשת אישור. אתה יכול לנסות להיכנס או לשנות תיקיות.
גישה לעמוד זה דורשת אישור. אתה יכול לנסות לשנות מדריכים.
'constructor' : an interface cannot have a constructor
Remarks
A Visual C++ interface cannot have a constructor.
Example
The following example generates C2846:
// C2846.cpp
// compile with: /c
__interface C {
C(); // C2846 constructor not allowed in an interface
};