#include "stdafx.h" #using <mscorlib.dll> using namespace System; class MyClass { private: int t; public: MyClass(int num) { t=num; } int get() const { return t; } void myFunc(){}; }; void main(void) { const MyClass a(10); Console::WriteLine(a.get()); }