mutator method

[ˈmjuːteɪtər ˈmeθəd]
nounpl: mutator methods
método mutador
1. A method in object-oriented programming that modifies the state of an object by changing the value of one or more of its attributes or properties
The setAge() method is a mutator method that changes the age property of a Person object.
O método setIdade() é um método mutador que altera a propriedade idade de um objeto Pessoa.
2. Also known as a 'setter', it is used to update private member variables in a controlled manner, often with validation
The mutator method validates the input before updating the object's internal state.
O método mutador valida a entrada antes de atualizar o estado interno do objeto.
This is a specialized technical term used primarily in software development and computer science education. It is widely recognized in both Brazilian and Portuguese tech communities, though 'setter' is often the preferred term in English-language programming contexts. The concept emphasizes the importance of encapsulation and controlled access to object properties in object-oriented programming.
Synonyms / Sinônimos
settersetter methodmodifier methodmethod mutador
Antonyms / Antônimos
accessor methodgettergetter methodobserver method

Regional Variations

General Brazilian
método mutador
Standard technical term used in software development contexts
São Paulo
método mutador
Common in tech hubs and IT companies
Portugal
método mutador
Same terminology used in Portuguese tech communities
USA (Technical)
mutator method or setter
'Setter' is often preferred in English-speaking programming communities

Related Words

accessor methodgetterencapsulationpropertyattributemethodobject-oriented programmingOOP

Related Idioms & Phrases

encapsulation through mutator methods
controlled state modification
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →