2014-08-16 19:40:39 +03:00
|
|
|
package com.iluwatar;
|
|
|
|
|
|
|
|
public class HealingPotion implements Potion {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void drink() {
|
2014-08-23 19:13:09 +03:00
|
|
|
System.out.println("You feel healed. (Potion=" + System.identityHashCode(this) + ")");
|
2014-08-16 19:40:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|