Last active
September 16, 2020 20:38
-
-
Save Guilherme-HRamos/c7478cb384b6647cf8cd745f4caed477 to your computer and use it in GitHub Desktop.
Medium - Android/Java Interfaces like a Boss! - Default Functionalities lll
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
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