getter function
[ˈɡɛtər ˈfʌŋkʃən]
nounpl: getter functions
função getter
1. A method or function in object-oriented programming that retrieves and returns the value of a private or protected object property or attribute
The getter function allows you to access the user's age without directly modifying it.
A função getter permite que você acesse a idade do usuário sem modificá-la diretamente.
2. In property-based languages, a special accessor method that provides read-only access to an object's internal state
In JavaScript, a getter function is defined using the 'get' keyword before the method name.
Em JavaScript, uma função getter é definida usando a palavra-chave 'get' antes do nome do método.
The term 'getter function' is part of standard programming terminology used globally in both the United States and Brazil. In Brazilian tech communities, it's commonly referred to as 'função getter' or sometimes 'método getter,' reflecting the influence of English technical jargon in the software development industry. The concept is fundamental to object-oriented programming practices and is taught in computer science courses in both countries.
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →