Skip to main content
mutator

mutator

7.7
A method that changes an object's data in a controlled way
  • noun
  • /ˈmjuːteɪtər/
  • Specialized
translation icon : mutador
  • 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

mutator singular
mutators plural

Morphology

mutator = mutate (transparent) = mutate + or

A regular agent-noun formed from the verb 'mutate' with the productive English suffix '-or', yielding 'one that mutates.'

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.