Immutable object - Wikipedia
In object-oriented (OO) and functional programming, an immutable object (unchangeable[1] object) is an object whose state cannot be modified after it is created.[2] This is in contrast to a mutable object (changeable object), which can be modified after it is created.[3] In some cases, an object is considered immutable even if some internally used attributes change, but the object's state appears unchanging from an external point of view. For example, an object that uses memoization to cache the results of expensive computations could still be considered an immutable object.
Immutable object - Wikipedia Jump to content From Wikipedia, the free encyclopedia Object whose state cannot be modified after it is created "Immutable" and "Immutability" redirect here. For the Christian doctrine, see Immutability (theology) . For the album, see Immutable (album) . For the crypto gaming company, see Immutable Pty Ltd . In object-oriented (OO) and functional programming, an immutable object (unchangeable [ 1 ] object) is an object whose state cannot be modified after it is created. [ 2 ] This is in contrast to a mutable object (changeable object), which can be
saved by
related reading
- Variables and Mutability - The Rust Programming Languagedoc.rust-lang.org
- Updating Objects in State – Reactreact.dev
- Reading 8: Mutability & Immutabilityweb.mit.edu
- Invariant (mathematics) - Wikipediaen.wikipedia.org
- 9. Classes — Python 3.14.6 documentationdocs.python.org
- Immutability in React: Should you mutate objects? - LogRocket Blogblog.logrocket.com
- Updating Arrays in State – Reactreact.dev
- 2.4 Mutable Datacomposingprograms.com
- Information hidingen.wikipedia.org
- Constants and statics - Rust for C-Programmersrust-for-c-programmers.com
- 14.1 — Introduction to object-oriented programming – Learn C++learncpp.com
- Side effect (computer science)en.wikipedia.org