Introduction

Introduction

Creational design patterns explained with demo implementations in Java

Creational patterns hide how instance of classes are constructed. Thereby enabling more independence and increasing flexibility in a system. In this series, we try to look at the most common creational patterns and their unique features.

To demonstrate the implementation of the creational patterns, we will use, as an example, what we have named as “The Design-pattern Cafe”. The Design-pattern Cafe is a fictitious Cafe based in Ethiopia. For each pattern, we have devised a problem-scenario that could potentially be solved with the pattern.

All of the sample code used as examples can be found on GitHub at: