|
-
Feb 5th, 2006, 02:03 PM
#1
Thread Starter
New Member
What is the Decorator Pattern?
Hi.
I am learning design patterns and I don;t understand the Decorator pattern, can anyone please explain it to me or link me to an article about it.
an example when to use it and why would be great.
thanks.
-
Feb 5th, 2006, 02:06 PM
#2
Re: What is the Decorator Pattern?
Google is your friend Type in "Decorator Pattern"... click search... VOILA! Plenty of hits on the first page
-
Feb 5th, 2006, 05:44 PM
#3
Frenzied Member
Re: What is the Decorator Pattern?
I didn't Google, so I'm not sure what you'd find, but it's easy to get lost and/or get a technical explanation without really understanding what the heck a pattern can be used for in the real world.
If you're just starting out learning patterns, I recommend the book Head First Design Patterns from O'Reily. Its really an excellent book, in more ways than one. The decorator pattern is explained in detail, with excellent examples or why you'd use that pattern rather than subclassing.
The Head First series comes from the Java world, but there's very little Java code in there, and design principles apply to any object orientated language.
Anyway, buy the book. It retails for about $45. Well worth the money. I've got literally thousands of dollars of software books, and this is one of my favorites.
Mike
-
Feb 5th, 2006, 06:07 PM
#4
Re: What is the Decorator Pattern?
 Originally Posted by dorraba
Hi.
I am learning design patterns and I don;t understand the Decorator pattern, can anyone please explain it to me or link me to an article about it.
an example when to use it and why would be great.
thanks.
Hi,
Found a link via Google like gigemboy suggested.
See this link:
http://www.castle-cadenza.demon.co.uk/decorate.htm
Hope it helps for your explaination.
sparrow1
-
Feb 5th, 2006, 06:37 PM
#5
Junior Member
Re: What is the Decorator Pattern?
Hi Dorraba, I highly recommend "Addison Wesley: C# Design Patterns, A Tutorial", you can find it searching in the emule the CHM and the examples both in C# and VB.net.
Regards,
Tribo
-
Feb 6th, 2006, 01:39 AM
#6
Re: What is the Decorator Pattern?
Here is one more - specifically for the Decorator pattern with example code:
http://www.dofactory.com/patterns/Pa...or.aspx#_self2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|