package observerPattern;

public class ApplicationUser implements User {

	String city;
	int price;
	String venue;
	Administrator data;

	public ApplicationUser(Administrator admin) {
		this.data = admin;
		this.data.registerUser(this);
	}

	public void update(String city, int price, String venue) {

	}

}

@@ -18,16 +18,379 @@
 attern;%0A
+/*%0A%7C=====================================================================%0A%7C%0A%7C----------------------------------------------------------------------%0A%7C%09The ApplicationUser is the 'concrete-observer' in this pattern%0A%7C----------------------------------------------------------------------%0A%7C%0A%7C======================================================================%0A%7C%0A*/
 %0Apublic 

Add comments