19 lines
306 B
Java
Raw Normal View History

2014-08-23 13:37:42 +03:00
package com.iluwatar;
public class HalflingThief {
private StealingMethod method;
public HalflingThief(StealingMethod method) {
this.method = method;
}
public void steal() {
method.steal();
}
public void changeMethod(StealingMethod method) {
this.method = method;
}
}