Design Patterns

General, reusable solution to a commonly occurring problem within a given context in software design.

Design patterns are being used in object oriented programming.
Object-oriented design patterns typically show relationships and interactions between classes or objects, without specifying the final application classes or objects that are involved.

Design Patterns can be classified in 3 categories: Creational, Structural and Behavioral patterns.

Creational Design Patterns

These design patterns are all about class instantiation.

This pattern can be further divided into class-creation patterns and object-creational patterns.
While class-creation patterns use inheritance effectively in the instantiation process, object-creation patterns use delegation (create child object using parent object) effectively to get the job done.

Structural  Design Patterns

These design patterns are all about Class and Object composition.

Structural class-creation patterns use inheritance to compose interfaces.
Structural object-patterns define ways to compose objects to obtain new functionality.

Behavioral Design Patterns

These design patterns are all about Class's objects communication.
Behavioral patterns are those patterns that are most specifically concerned with communication between objects.

Best Design Patterns

The best design patterns are:

Up Next

In the next step, we will explore developing patterns that focus on effective development practices and methodologies patterns, like Waterfall and Agile, which promote iterative development, collaboration, and continuous improvement.