The strategy pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. In this example, We have a set of discounts that can be applied to a shopping cart. We can pass the function that we will apply to the constru...
Makes difficult things seem easy
I'm Nhan. I'm a web developer from Vietnam. I have over 5 years of experience in the Angular framework.
Markdown supported · ⌘↵ to post
No responses yet.