What reasonable amount of accessor functions do you need in a C++ class?

Started by
9 comments, last by 21st Century Moose 12 years, 11 months ago
Generally you need one for each member that needs one.

I am being serious here; there is no fixed amount that is prescribed under any particular circumstances; your code follows your design and not some abstract rules like "you need X amount of thing Y". If your design requires 200, then you need 200. If your design requires 1 then you need 1. Simple as that.

Direct3D has need of instancing, but we do not. We have plenty of glVertexAttrib calls.

This topic is closed to new replies.

Advertisement