J
john smith
I was looking at some code that someone had written, and they had a class
with all static attributes.
Can someone please enlighten me why someone would do that? Doesn't that
break the rule of encapsulation?
I have always been used to seeing accessors and mutators instead of directly
accessing an attribute to change or
access the variable.
Thanks in advance for any insight.
with all static attributes.
Can someone please enlighten me why someone would do that? Doesn't that
break the rule of encapsulation?
I have always been used to seeing accessors and mutators instead of directly
accessing an attribute to change or
access the variable.
Thanks in advance for any insight.