From 1e0d93fa6acf2d7fd375dd36ff958aef58703db1 Mon Sep 17 00:00:00 2001 From: Hammy Date: Wed, 23 Dec 2020 13:15:38 +0000 Subject: [PATCH] Made code more modular --- Design Patterns/src/factory/coffee/Latte.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Design Patterns/src/factory/coffee/Latte.java b/Design Patterns/src/factory/coffee/Latte.java index cd82ffe..31236c0 100644 --- a/Design Patterns/src/factory/coffee/Latte.java +++ b/Design Patterns/src/factory/coffee/Latte.java @@ -14,5 +14,5 @@ public class Latte extends Coffee{ } @Override - public void steamMilk() { System.out.println("Steaming Almond Milk...."); } + public void steamMilk() { System.out.println("Steaming " + getMilk() + "...."); } }