Do not change the state of an object without going through its public interface
From CSSEMediaWiki
(Difference between revisions)
m (Reverted edits by Ebybymic (Talk); changed back to last version by Stephen Fitchett) |
|||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
:''Do not change the state of an object without going through its public interface.'' --Riel's heuristic 9.2, [[Arthur Riel 1996]] | :''Do not change the state of an object without going through its public interface.'' --Riel's heuristic 9.2, [[Arthur Riel 1996]] | ||
Latest revision as of 03:21, 25 November 2010
- 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.