1. A method or procedure that is not mandatory; a technique that can be chosen or omitted according to preference or necessity
The optional method for payment allows customers to choose between credit card or bank transfer.
O método opcional de pagamento permite aos clientes escolherem entre cartão de crédito ou transferência bancária.
2. In programming and software development, a method or function that may be implemented or used at the discretion of the developer
This is an optional method that developers can override if they need custom behavior.
Este é um método opcional que os desenvolvedores podem sobrescrever se precisarem de um comportamento personalizado.