package observerPattern;

public class MagazineUser implements User {

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

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

	public void update(String city, int price, String venue) {
		this.city = city;
		this.price = price;
		this.venue = venue;

	}

}

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

Add comments