Beispiel #1
0
        static void StatePatternDemo()
        {
            saleState.Sold();      //Transition to StSold

            saleState.Available(); //Transition to StAvailable

            Console.ReadLine();
        }