Skip to content

Instantly share code, notes, and snippets.

@Guilherme-HRamos
Last active September 16, 2020 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Guilherme-HRamos/c7478cb384b6647cf8cd745f4caed477 to your computer and use it in GitHub Desktop.
Save Guilherme-HRamos/c7478cb384b6647cf8cd745f4caed477 to your computer and use it in GitHub Desktop.
Medium - Android/Java Interfaces like a Boss! - Default Functionalities lll
public class OpenFileHelper implements LoggerComponent {
public OpenFileHelper() {
printMethodCall()
init();
}
private void init() {
printMethodCall()
// some code here
openFile();
}
private void openFile() {
printMethodCall("Trying to open file")
// some code here
if(success)
printMessage("File opened")
else
printMessage("File not opened")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment