Mega Code Archive

 
Categories / Visual C++ .NET / Class
 

Interface list

#include "stdafx.h" using namespace System; interface class MyInterface {}; interface class MyInterfaceB {}; ref class Base : MyInterface   // OK { }; ref class Derived : Base, MyInterface  // OK : Base class first { }; ref class A : Object, MyInterface  // OK: Object may be explicitly stated. { }; value class V : ValueType, MyInterface  // OK: Value class inherits from ValueType. { }; ref class B : MyInterfaceB, Base  // OK. Base class need not appear first (as in C#). { };