Const (computer programming): Difference between revisions

Content deleted Content added
No edit summary
:{{merge|immutable object}}
Line 1:
:{{merge|immutable object}}
 
'''<code>Const<code>-correctness''' is a feature of some [[computer]] [[programming language]]s that allows the programmer to indicate when an object does or does not change by declaring the object <code>const</code> (or non-<code>const</code>). It can be used to improve [[encapsulation]], correctness, readability, and even performance. The best known language with this feature is [[C plus plus programming language|C++]].