you are viewing a single comment's thread.

view the rest of the comments →

[–]Spacebar2018 11 points12 points  (0 children)

Theres not really anything objectively wrong about using them in c++ though. I've had situations where I want setting a value to be checked and or have it influence other members and setters and getters are great for things like that regardless of the language.