21 years, 2 months ago
Highlights
Community contributions featured21 years, 2 months ago
My point is this. You see alot of people do this:class CFoo{private: int m_x, m_y;public: int GetX() { return m_x; } void SetX(int x) { m_x = x; } int GetY() { return m_y; } voi…
21 years, 2 months ago
There is no real benefit. It just makes code look readable. I was refering to C++ code, read the post before mine.
21 years, 2 months ago
21 years, 2 months ago
21 years, 2 months ago
Latest Activity
See all in DiscussionsMy point is this. You see alot of people do this:class CFoo{private: int m_x, m_y;public: int GetX() { return m_x; …
21 years, 2 months ago
There is no real benefit. It just makes code look readable. I was refering to C++ code, read the post …
21 years, 2 months ago
This is true but I like to do things like:class CFoo{private: int m_x, m_y;public: int& X() { return m_x; } …
21 years, 2 months ago