Design Patterns Tutorial
A tutorial on GOF design patterns. This tutorial is for beginners who are going to learn design patterns for the first time. Each pattern is expalined with suitable examples.
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.

Bridge Pattern in Design Patterns

Categories: Structural Patterns. No Comments on Bridge Pattern in Design Patterns

Bridge pattern is used to decouple an abstraction from its implementation so that both can be changed independently.   Bridge Pattern’s Intent To decouple an abstraction from its implementation so that both can be changed independently.   Also Known As Handle/Body   Bridge Pattern’s Motivation Sometimes an abstraction should have different implementations; consider an object […]

Read the rest of this entry »

Adapter Pattern in Design Patterns a Java Example

Categories: Structural Patterns. No Comments on Adapter Pattern in Design Patterns a Java Example

The adapter pattern is adaptation between classes and objects. Like any adapter in the real world it is used to be an interface, a bridge between two objects.   Adapter Pattern’s Intent To convert the interface of one class into another interface that the client expects. Adapter pattern allows two incompatible classes to communicate with […]

Read the rest of this entry »

Structural Patterns in Design Patterns

Categories: Structural Patterns. No Comments on Structural Patterns in Design Patterns

Structural patterns are concerned with how classes and objects can be arranged to form larger structures.     Structural class patterns use inheritance to compose interfaces or different implementations. For example, multiple inheritance can be used to combine features from two or more classes into a single class. This allows two or more independently developed […]

Read the rest of this entry »