← Back

Immutable object

Mutable is an adjective used to describe something that is capable of change or alteration. In a broader sense, it refers to the ability of an object, concept, or state to be modified or transformed. The term originates from the Latin word mutabilis, meaning "changeable." In Hebrew, the translation is שינוי (shinui), which also means "change" or "alteration." In French, it is mutable, in Spanish mutable, and in German veränderlich. In computer science, a mutable object is one whose state or data can be changed after it is created, as opposed to an immutable object, which cannot be altered after creation. This concept is crucial in programming, where understanding the mutability of data types affects how variables and functions are used and manipulated.

Wikipedia Information
Immutable object
Object whose state cannot be modified after it is created
In object-oriented (OO) and functional programming, an immutable object is an object whose state cannot be modified after it is created. This is in contrast to a mutable object, which can be modified after it is created. 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.
Last modified: 2025-11-08T18:43:54ZView full article on Wikipedia