Archive for the 'Structural patterns' Category

08
Oct
08

Structural Design Patterns : Composite Design Pattern

The Composite Pattern is considerable pattern of Structural Design Patterns group. Composite pattern is solution for building complex systems which are made up of lots of smaller components.  To understand the concept of Composite Pattern we need to understand the terms;
1) Components and
2) Composites
Continue reading ‘Structural Design Patterns : Composite Design Pattern’

08
Oct
08

Structural Pattern: Adapter Design Pattern

This is another pattern which lies in structural Design Pattern section. To understand the pattern, let’s assume that there are two persons, one person can understand English language only and another can understand Spanish language only. But the both persons need discuss about an application. Here both persons have different interfaces of language they can understand i.e incompatible interfaces, but the requirement is that they need to discuss on an application issue. There is a solution, that is the any one of two person need to learn others language, but it takes long time to learn a new language, so we don’t want go with that solution. The problem can be solved by adapting a third person who can understand both English and Spanish languages, so that he can act as a translator between two peoples.

Continue reading ‘Structural Pattern: Adapter Design Pattern’

01
Oct
08

Structural Design pattern: Decorator Design Pattern

I have started with Structural Design pattern; at first place I saw the name Decorator Pattern. As I read the name, I thought name itself describing the pattern, and I was right. The Structural Design Patterns uses classes and object to build complex structures. In this post I am going to share the first member of the Structural Design Patterns group, which is Decorator Design Pattern.
Continue reading ‘Structural Design pattern: Decorator Design Pattern’




Follow

Get every new post delivered to your Inbox.