public class RedTapeRecipe extends Recipe{
				private boolean isStuck;
				public void stir() {
					isStuck = true;
					System.out.println("You're stuck, buddy.");
				}
				public void serve() {
					if (!isStuck) {
						throw new RuntimeException("You're not actually stuck.");
					}
					System.out.println("ประกRed Tape, served cold.");
				}
			}
		

Example Use Cases:

Subpages: