Concrete Strategies

Adding a new payment method requires creating a new strategy class rather than touching existing classes. Concrete strategies are individual classes that implement one behavior each. Each payment method becomes its own strategy class imple…

1 sources - 3 claims

Adding a new payment method requires creating a new strategy class rather than touching existing classes. Concrete strategies are individual classes that implement one behavior each. Each payment method becomes its own strategy class implementing the strategy interface.