@@ -0,0 +1,356 @@
+package ProtectionProxy;%0Aimport users.*;%0Apublic class ActivityProxy implements Acess %7B%0A%09User u;%0A%09%0A%09public ActivityProxy(User u) %7B%0A%09%09this.u = u;%0A%09%7D%0A%0A%09public User getU() %7B%0A%09%09return u;%0A%09%7D%0A%0A%09@Override%0A%09public void acessActivity() %7B%0A%09%09if(u.haveAcess()) %7B%0A%09%09%09//DO SOMETHING%0A%09%09%7Delse %7B%0A%09%09%09System.out.println(%22You can't acess this activity%22);%0A%09%09%7D%0A%09%09%0A%09%7D%0A%09%0A%09%0A%09%0A%09%0A%09%0A%7D%0A

Create ActivityProxy.java