Write only property
#include "stdafx.h" using namespace System; ref class MyClass { unsigned int atomic_number; public: property unsigned int MyValueNumber; property unsigned int MyInt { public: unsigned int get() { return atomic_number; } protected: void set(unsigned int n) { atomic_number = n; } } }; ref class RadioactiveMyClass : MyClass { public: void AlphaDecay() { MyInt -= 2; MyValueNumber -= 4; } };