Strategy Design Pattern

Suppose you work for a company that makes a highly successful duck pond simulation game, SimUDuck. The game can show a large variety of duck species swimming and making quacking sounds. The initial designers of the system used standard OO techniques and created one Duck superclass from which all other duck types inherit. Continue reading “Strategy Design Pattern”

Reklamlar

Singleton Design Pattern

This pattern is all about of creating one and only one instance of an object. Yes it sounds it is simple but once you are doing it wrong you will see some surprises with your programs outputs and would hardly know what is going wrong. Continue reading “Singleton Design Pattern”