added flyweight sample

This commit is contained in:
Ilkka Seppala committed 2014-08-16 19:40:39 +03:00
1 parent 8725969908
commit 3fcca577f8
12 files changed
+191 -1

No files matched your search

@@ -0,0 +1,10 @@
package com.iluwatar;
public class StrengthPotion implements Potion {
@Override
public void drink() {
System.out.println("You feel strong.");
}
}