2 ms·
Setters and getters aren’t really object oriented. An object has behaviour, ensuring the inner workings of that object are protected is a good thing _even if_ t
by vegannet 7y ago
Setters and getters aren’t really object oriented. An object has behaviour, ensuring the inner workings of that object are protected is a good thing _even if_ the inner workings are only ever inner workings. There’s lots of valid and meaningful uses of this functionality.