package factoryPattern;

public class CookieShop {
	CookieFactory factory;

	public CookieShop(CookieFactory factory) {
		this.factory = factory;
	}

	public void takeOrder(String type) {
		Cookie cookie;
		cookie = factory.createCookie(type);
		cookie.mix();
		cookie.bake();
		cookie.box();
	}
}

@@ -17,16 +17,320 @@
 attern;%0A
+/*%0A%7C===========================================================%0A%7C%0A%7C-----------------------------------------------------------%0A%7C%09The CookieShop is the 'client' in this pattern%0A%7C-----------------------------------------------------------%0A%7C%0A%7C===========================================================%0A%7C%0A*/
 %0Apublic 

Update CookieShop.java