Composite Pattern

Design Patterns Overview

Definition

Add the Capability of Never Ending Grouping. Client Treats Collection of Objects and Individual Objects Uniformly.

Read More

Share Comments

Iterator Pattern

Design Patterns Overview

Definition

Get the Iterator for Any Type of Collections in Subclasses. Provides a Way to Traverse a Collection of Objects Without Exposing Its Implementation.

Read More

Share Comments

Template Method Pattern

Design Patterns Overview

Definition

Create a Fixed Procedure and Vary its details for the Subclasses. Subclasses Decide How to implement Steps in an Algorithm.

Read More

Share Comments

Bridge Pattern

Design Patterns Overview

Definition

Decouple Products from Their Usage So That They can Change Independently. Make It Easier to Add More Capabilities to a Set of Subclasses Through Abstraction Layer.

Read More

Share Comments

Facade Pattern

Design Patterns Overview

Definition

Create a Simplified Interface to a Set of Classes. Create a Cohesive Class Is Easier to Read, Test, Understand and Use by Grouping Methods with Common Tasks from a Set of Other Classes.

Read More

Share Comments

Adapter Pattern

Design Patterns Overview

Definition

Create Adaptability Among Different Interfaces. Adapt an Existing Class to Work With Others Without Modifying It.

Read More

Share Comments

Decorator Pattern

Design Patterns Overview

Definition

Provide New Abilities/Behaviors at Runtime. Wrapping an Object (Through Composition) In Order to Provide Additional Abilities

Read More

Share Comments

Command Pattern

Design Patterns Overview

Definition

Create a Set of Reusable Commands For Various Products. Encapsulate the concept of an action (Command).

Read More

Share Comments

Prototype Pattern

Design Patterns Overview

Definition

Create new instances by copying the existing one. Client code can make new instances without knowing which specific class is being instantiated.

Read More

Share Comments

Null Object Pattern

Design Patterns Overview

Although Null Object pattern is not part of the classical design patterns, but it is certainly one of those useful mindsets every developer shall practice over and over.

Definition

Substitute Null References with Neutral Objects That Cause No Side Effects.

Read More

Share Comments