Compiler Error C2890
'class' : a ref class can only have one non-interface base class
A reference class can only have one base class.
The following sample generates C2890:
// C2890.cpp
// compile with: /clr /c
ref class A {};
ref class B {};
ref class C : public A, public B {}; // C2890
ref class D : public A {}; // OK
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for