Skip to content

Instantly share code, notes, and snippets.

@woprzech
Created June 1, 2017 07:00
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 woprzech/3d21386c96c81a71b41f2b51521864fb to your computer and use it in GitHub Desktop.
Save woprzech/3d21386c96c81a71b41f2b51521864fb to your computer and use it in GitHub Desktop.
public class SecurityCentral {
private final Window window;
private final Door door;
public SecurityCentral(Window window, Door door) {
this.window = window;
this.door = door;
}
void securityOn() {
window.close();
door.close();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment