Inheritance: AbstractDeliveryState
示例#1
0
 public override void Continue()
 {
     NextState = new DelieveredState(product_on_the_way.product);
     Console.WriteLine("Product is currently in tranzit");
     product_on_the_way.ContinueToNextState(NextState);
 }
示例#2
0
 public override void Continue()
 {
     NextState = new DelieveredState(product_on_the_way.product);
     Console.WriteLine("Product is currently in tranzit");
     product_on_the_way.ContinueToNextState(NextState);
 }