Philosophy | Artificial Intelligence | etcetera
Welcome to my personal space on the web ↯.
Object Orientation: Strategy Pattern
In object-oriented programming classes tend to multiply quickly. Luckily, some design patterns are available to solve commonly occurring issues. In this post I want to quickly illustrate the strategy pattern with an easy example written in Java. To make it intuitively clear why this pattern is called the ‘strategy’ pattern, let’s sketch a situation in which the application of different strategies is important: a game. Without getting lost in the philosophical details of what …
See archives for more ...