Selasa, 26 Oktober 2010

An example of Strategy Design pattern for beginners

IntroductionSometime we need to carry out several computation / algorithms depending on certain conditions. We go ahead in implementing those generally by applying either switch or ternary operator or if else. Though initially somehow we manage to write those program but if the program demands too complex then it is difficult to frame such as well as to maintain. Moreover, writing all the logic

Tidak ada komentar:

Posting Komentar