Do not change the state of an object without going through its public interface

From CSSEMediaWiki
Revision as of 01:57, 11 October 2009 by Stephen Fitchett (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Do not change the state of an object without going through its public interface. --Riel's heuristic 9.2, Arthur Riel 1996

This heuristic is closely related to the maxim Don't expose mutable attributes.

See also

Personal tools