The Artima Developer Community
Sponsored Link

Design Forum
Decorator & Composite

1 reply on 1 page. Most recent reply: Aug 23, 2003 5:02 PM by Senthoorkumaran Punniamoorthy

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
sivakumar

Posts: 1
Nickname: siva77
Registered: Jul, 2003

Decorator & Composite Posted: Jul 7, 2003 9:35 PM
Reply to this message Reply
Advertisement
What is the differance between Decorator and Composite pattern.Can someone explain with an exmaple.

siva


Senthoorkumaran Punniamoorthy

Posts: 335
Nickname: senthoor
Registered: Mar, 2002

Re: Decorator & Composite Posted: Aug 23, 2003 5:02 PM
Reply to this message Reply
This is something I found in the web.

"Decorator is designed to let you add responsibilities to objects without subclassing. Composite's focus is not on embellishment but on representation. These intents are distinct but complementary."

Flat View: This topic has 1 reply on 1 page
Topic: The Best way to ;earn Design Patterns? Previous Topic   Next Topic Topic: Java Persistance for Object-Relational Databases

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use