mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 16:58:56 +00:00
11 lines
210 B
Java
11 lines
210 B
Java
package com.iluwatar;
|
|
|
|
public class HealingPotion implements Potion {
|
|
|
|
@Override
|
|
public void drink() {
|
|
System.out.println("You feel healed. (Potion=" + System.identityHashCode(this) + ")");
|
|
}
|
|
|
|
}
|