Skip to content

Instantly share code, notes, and snippets.

@hackjutsu
Created May 20, 2019 05:35
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 hackjutsu/11223268b80d3fa26ee10de2a850d60d to your computer and use it in GitHub Desktop.
Save hackjutsu/11223268b80d3fa26ee10de2a850d60d to your computer and use it in GitHub Desktop.
[medium snippets] #medium #designPattern #FacadePattern
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