Errore del compilatore C3141
'interface_name': le interfacce supportano solo l'ereditarietà pubblica
Le interfacce definite con la parola chiave interface (o __interface) supportano solo l'ereditarietà pubblica.
L'esempio seguente genera l'errore C3141:
// C3141.cpp
__interface IBase {};
__interface IDerived1 : protected IBase {}; // C3141
__interface IDerived2 : private IBase {}; // C3141