-
Notifications
You must be signed in to change notification settings - Fork 35
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
base: main
Are you sure you want to change the base?
Roxanie Fernandes - Semana 01 #16
Conversation
return this.limite | ||
} | ||
|
||
saque(valor) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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 :)
No description provided.