2017-04-28 19:35:19 +02:00
|
|
|
/**
|
|
|
|
* Created by Alexis on 28-Apr-17.
|
|
|
|
*/
|
|
|
|
public class App {
|
2017-04-29 16:35:57 +02:00
|
|
|
public static void main(String[] args) {
|
|
|
|
Guard guard = new Guard();
|
2017-04-28 19:35:19 +02:00
|
|
|
|
2017-04-29 16:35:57 +02:00
|
|
|
if (guard instanceof Permission) {
|
|
|
|
guard.enter();
|
|
|
|
}
|
|
|
|
}
|
2017-04-28 19:35:19 +02:00
|
|
|
}
|
2017-04-29 16:35:57 +02:00
|
|
|
|