Builder Pattern with Java examples

What is Builder Pattern? Builder pattern is a creational design pattern. The main intention of the builder pattern is to create complex objects by separating the construction process from its representation. This pattern enables the polymorphism by providing an effective solution for creating different forms of an object while using a consistent construction process. The […]

Read More

The Factory Method Design Pattern

What is Factory Method Design Pattern? Gang of Four categorizes the factory method design pattern as a creational pattern since it deals with object creation.  This pattern enforces the loose coupling and encapsulation principles in object-oriented programming. This pattern applies in situations where there are sub-classes involved, and the creation of those becomes complex with […]

Read More

Introduction to Design Patterns

What are Design Patterns? What is a Pattern? Patterns exist everywhere in the world. In culinary, art, medicine, law, mathematics, music, dancing and the list goes on. Genrally, a pattern is identified as a recurring arrangement created to solve some generalized problem. It is simply a solution outline. That solution outline can be used over and over […]

Read More

Strategy Design Pattern

Do you Know The Strategy Design Pattern? What is Strategy Design Pattern? Do you use Strategies? We all have dealt with strategies in certain moments of our life. In more technical words strategy is a set of planned actions designed to achieve a specific goal. Simply, you try out many strategies when a final exam […]

Read More