mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-15 03:01:12 +00:00
13 lines
268 B
Java
13 lines
268 B
Java
package com.iluwatar;
|
|
|
|
public class App
|
|
{
|
|
public static void main( String[] args )
|
|
{
|
|
HalflingThief thief = new HalflingThief(new HitAndRunMethod());
|
|
thief.steal();
|
|
thief.changeMethod(new SubtleMethod());
|
|
thief.steal();
|
|
}
|
|
}
|