Last active
May 26, 2019 23:52
-
-
Save Kamilahsantos/39339c4ffcc86c4aa448bc8aec43d08e 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 ContaCorrente | |
attr_accessor : taxa_juros | |
end | |
class ContaBancaria | |
def juros_por_dias(numero_de_dias, dias) | |
@contacorrente.taxa_juros * numero_de_dias * dias / 365; | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment