Make all Member Variables Private
From CSSEMediaWiki
(Difference between revisions)
Nelson Shaw (Talk | contribs) (New page: '' Make all Member Variables Private '' This idea is based around information hiding. That class related data should be exclusively accessible to it's own class. If another entity wants t...) |
Nelson Shaw (Talk | contribs) |
||
Line 3: | Line 3: | ||
This idea is based around information hiding. That class related data should be exclusively accessible to it's own class. If another entity wants to | This idea is based around information hiding. That class related data should be exclusively accessible to it's own class. If another entity wants to | ||
gain access or modify this data, it must be through public getter and setter methods. | gain access or modify this data, it must be through public getter and setter methods. | ||
− | |||
− | |||
== See also == | == See also == | ||
* [[Information hiding]] | * [[Information hiding]] |
Latest revision as of 23:20, 20 October 2010
Make all Member Variables Private
This idea is based around information hiding. That class related data should be exclusively accessible to it's own class. If another entity wants to gain access or modify this data, it must be through public getter and setter methods.