package factoryPattern;
/*
|===========================================================
|
|-----------------------------------------------------------
|	The Cookie is the 'product' in this pattern
|-----------------------------------------------------------
|
|===========================================================
|
*/
public class Cookie 
{
	protected String flavour;
	
	protected String name;
	
	protected String topping;

	public Cookie() {

	}

	public void mix() {
		
		System.out.println("Mixing in the " + flavour);
	}

	public void bake() {
		
		System.out.println("baking with " + topping + " on top");
	}

	public void box() {
		
		System.out.println("Your " + name + " is ready now.");
	}
}

@@ -339,17 +339,16 @@
  Cookie 
-%0A
 %7B%0A%09prote
@@ -368,18 +368,16 @@
 lavour;%0A
-%09%0A
 %09protect
@@ -392,18 +392,16 @@
 g name;%0A
-%09%0A
 %09protect
@@ -419,17 +419,16 @@
 opping;%0A
-%0A
 %09public 
@@ -460,27 +460,24 @@
 oid mix() %7B%0A
-%09%09%0A
 %09%09System.out
@@ -536,27 +536,24 @@
 id bake() %7B%0A
-%09%09%0A
 %09%09System.out
@@ -600,24 +600,24 @@
  top%22);%0A%09%7D%0A%0A
+
 %09public void
@@ -629,11 +629,8 @@
 ) %7B%0A
-%09%09%0A
 %09%09Sy

Update Cookie.java