Your object structure inside an application may be complicated and varied. A good example is what could be…
In the Template Method pattern, you create an abstract class (template) that contains a…
The Strategy Pattern is similar to the State Pattern, except that the client passes in the algorithm that…
Throughout the lifecycle of an application, an objects state may change. You might want to store a copy of…
Objects communicate through the Mediator rather than directly with each other.
The Interpreter pattern helps to convert information from one language into another.
The Bridge pattern is similar to the Adapter pattern except in the intent that you developed it.
Sometimes you have a system that becomes quite complex over time as more features are added or modified. It…
Sometimes you need an object in an application where there is only one instance.
When developing code, you may instantiate objects directly in methods or in classes. While this is quite…