Make all Member Variables Private
From CSSEMediaWiki
Revision as of 23:20, 20 October 2010 by Nelson Shaw (Talk | contribs)
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.
An opposing force is Behavioral completeness.