← Back to Fala2Me

private method

[ˈpraɪvət ˈmeθəd]
nounpl: private methods
método privado
1. In object-oriented programming, a method that can only be accessed from within the same class and cannot be called from outside the class or by subclasses
The private method validateInput() is used internally by the class to check user data before processing.
O método privado validateInput() é usado internamente pela classe para verificar os dados do usuário antes do processamento.
2. A subroutine or function with restricted visibility, designated by access modifiers such as 'private' in Java, C++, or C#
The developer declared the calculateTax() method as private to prevent direct access from other classes.
O desenvolvedor declarou o método calculateTax() como privado para evitar acesso direto de outras classes.
Synonyms
private functioninternal methodencapsulated method
Antonyms
public methodprotected method

Regional Variations

General Brazilian
método privado
Standard term used in programming contexts across Brazil
Portugal
método privado
Same terminology used in Portuguese software development

Related Idioms & Phrases

information hiding
encapsulation principle
access control
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →