예제 #1
0
        public static void Main(string[] args)
        {
            Context context = new Context();

            context.State = new ConcreteState1();
            context.draw();
            context.State = new ConcreteState2();
            context.draw();
        }