#include "stdafx.h" interface class IInterface { void f(); int g(); }; ref class MyClass : IInterface { public: virtual void f() { } virtual int g() { return 1; } };