método setter / método de definição
1. A method in object-oriented programming that allows modification of an object's private attributes by assigning a new value to them
The set method for the age property validates that the value is a positive number before assigning it.
O método setter para a propriedade idade valida que o valor é um número positivo antes de atribuí-lo.
2. In software development, a special function or procedure used to set or update the value of a property or field in a class
You can use the setName set method to update the user's name in the database.
Você pode usar o método setter setName para atualizar o nome do usuário no banco de dados.
This is primarily a technical term used in software development communities worldwide. In Brazil, both 'método setter' and 'método de definição' are used, though 'setter' is increasingly common due to international software development practices. The term is part of the Object-Oriented Programming paradigm and is essential in discussions about data encapsulation and access control in programming.
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →