Make all Member Variables Private

From CSSEMediaWiki
(Difference between revisions)
Jump to: navigation, search
(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...)
 
 
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.
 
An opposing force is [[Behavioral completeness]].
 
  
 
== 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.

See also

Personal tools