Created
June 1, 2017 07:00
-
-
Save woprzech/3d21386c96c81a71b41f2b51521864fb to your computer and use it in GitHub Desktop.
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 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