mutator
- noun
- /ˈmjuːteɪtər/
- Specialized
- The mutator allows you to update the user's email address in the database.
Examples
-
Good programming practice separates mutator methods from those that only read data.
-
By using a mutator, the application ensures that changes to the object are controlled and validated.
-
A mutator is essential for managing the state of objects in a program.
-
The mutators in this class are designed to update private variables.
-
In programming, a mutator method allows you to change the attributes of an object safely.
-
Using mutators helps maintain the integrity of an object's data by controlling how it is modified.
-
The software includes several mutators to update user settings without directly altering the data structure.
Surface Forms
Morphology
Etymology
Mutator comes from the Latin root mut- meaning 'change', the same root as in mutate and mutation. So a mutator in programming is a method that makes a controlled change inside an object or data structure.