2014-08-16 19:40:39 +03:00
|
|
|
package com.iluwatar;
|
|
|
|
|
|
|
|
public class StrengthPotion implements Potion {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void drink() {
|
2014-10-08 13:42:12 +01:00
|
|
|
System.out.println("You feel strong. (Potion="
|
|
|
|
+ System.identityHashCode(this) + ")");
|
2014-08-16 19:40:39 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|