mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 06:58:41 +00:00
code implemented
This commit is contained in:
@@ -2,5 +2,12 @@
|
||||
* Created by Alexis on 28-Apr-17.
|
||||
*/
|
||||
public class App {
|
||||
public static void main(String[] args) {
|
||||
Guard guard = new Guard();
|
||||
|
||||
if (guard instanceof Permission) {
|
||||
guard.enter();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user