Created
June 30, 2019 20:46
-
-
Save Guilherme-HRamos/2686319a3478892cd207bade196cefe9 to your computer and use it in GitHub Desktop.
Medium - Android/Java Interfaces like a Boss! - Constants
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
interface InterfaceWithConstants { | |
// Atributos | |
// 1.Permitido apenas atributos constantes (static final), ou seja, | |
// precisam ser declarados com valores definidos que não podem | |
// ser alterados em tempo de execução | |
// 2.Os modificadores podem ficar implícitos, | |
// pois apenas "um" tipo de modificador é permitido | |
String BASE_URL = "https://medium.com"; | |
int MAX_TRIES = 10; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment