Kudos to my friend, Anton Van, who shared me this link: http://www.newthinktank.com/videos/design-patterns-tutorial/
What did I learned?
1. Strategy Pattern
- Define a family of algorithm, encapsulate each one and make them interchangeable. The Strategy Pattern lets the algorithm vary independently from clients that use it.
Fig 1.0 Family of Algorithm |
Fig 2.0 Algorithm vary independently |
Fig 3.0 Base Class |
I promise to keep updating you with my good finds. So keep visiting my blog.
Cheers!
had my brain freezed by just looking the image of your post Rhea,....:)
ReplyDelete