As far as I can see, c++ does not implement properties... At least not the way c# does?!
Can you do this in a somewhat similar way in C++?Code://in c# you can define properties like this int myProp { get { return xxx; } set { xxx = value; } }
The above method does not work...



LinkBack URL
About LinkBacks



Naturally, any good programmer will refrain from abusing features. Judicious use of getters and setters is just fine, ne?