← Back to Fala2Me

public method

[ˈpʌblɪk ˈmeθəd]
nounpl: public methods
método público
1. In object-oriented programming, a method that can be accessed and called from outside the class in which it is defined, allowing external code to interact with an object's functionality.
The public method 'calculateTotal()' can be called by any part of the application to compute the sum.
O método público 'calcularTotal()' pode ser chamado por qualquer parte da aplicação para computar a soma.
2. A member function with public access modifier that defines the interface through which objects of a class communicate with other objects.
Developers should document public methods clearly so other programmers know how to use them.
Os desenvolvedores devem documentar métodos públicos claramente para que outros programadores saibam como usá-los.
Synonyms
public functionpublic procedureexported methodaccessible method
Antonyms
private methodprotected methodinternal method

Regional Variations

General Brazilian
método público
Standard term used in Brazilian Portuguese programming contexts
São Paulo
método público
Common usage in São Paulo's tech industry
Portugal
método público
Standard term used in European Portuguese programming communities

Related Idioms & Phrases

expose a public method
implement a public method
override a public method
call a public method
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →