Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roxanie Fernandes - Semana 01 #16

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RoxanieFernandes
Copy link

No description provided.

return this.limite
}

saque(valor) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Penso que seria interessante manter o mesmo "formato de expressão" ao dar nomes aos métodos, usando verbos. Como fez com os métodos: consultarSaldo / consultarLimite. Pois, verbos denotam ação e faz referência a ação que você espera que o método execute. Na maioria dos casos, substantivos e adjetivos são usados para nomear classes e variáveis. Então penso que deveria ser "sacarValor". De resto tudo ótimo :)

return this.consultarSaldo()
}

deposito(valor) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mesma sentido do comentário anterior: usar verbos.
depositarValor(valor){
.......
}

return this.consultarSaldo()
}

novoLimite(novoLimite) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mesma sentido do comentário anterior: usar verbos. Algumas sugestões: atualizarLimite / alterarLimite

Obrigada :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants