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.
What reasonable amount of accessor functions do you need in a C++ class?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement