#include "stdafx.h"
using namespace System;
ref class MyClass
{
public:
literal String^ name = "Bob";
MyClass()
{
Console::WriteLine(name);
}
void Print()
{
Console::WriteLine(name);
}
};
int main()
{
MyClass^ c = gcnew MyClass();
c->Print();
Console::WriteLine( MyClass::name );
}