Created
November 21, 2019 00:03
-
-
Save ramon-src/ae6e00496427bf414daf447574b2db95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Pagamento { | |
public void executar(String tipoPagamento) { | |
if (tipoPagamento == "Cartão de Débito"){ | |
print("debita sem taxa"); | |
} | |
if (tipoPagamento == "Cartão de Crédito"){ | |
print("debita com taxa"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment