mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 22:58:36 +00:00
added flyweight sample
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package com.iluwatar;
|
||||
|
||||
public class StrengthPotion implements Potion {
|
||||
|
||||
@Override
|
||||
public void drink() {
|
||||
System.out.println("You feel strong.");
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user