Created
May 20, 2019 05:35
-
-
Save hackjutsu/11223268b80d3fa26ee10de2a850d60d to your computer and use it in GitHub Desktop.
[medium snippets] #medium #designPattern #FacadePattern
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
class CPU { | |
public void freeze() { | |
System.out.println("CPU: freezing..."); | |
} | |
public void jump(long position) { | |
System.out.println("CPU: jumping..."); | |
} | |
public void execute() { | |
System.out.println("CPU: executing..."); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment