mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 14:58:39 +00:00
12 lines
222 B
Java
12 lines
222 B
Java
package com.iluwatar;
|
|
|
|
public class PoisonPotion implements Potion {
|
|
|
|
@Override
|
|
public void drink() {
|
|
System.out.println("Urgh! This is poisonous. (Potion="
|
|
+ System.identityHashCode(this) + ")");
|
|
}
|
|
|
|
}
|