Skip to Content.
Sympa Menu

gang-of-4-patterns - [gang-of-4-patterns] query on composite pattern

gang-of-4-patterns AT lists.cs.illinois.edu

Subject: Design Patterns discussion

List archive

[gang-of-4-patterns] query on composite pattern


Chronological Thread 
  • From: rajesh AT cs.iitm.ernet.in
  • To: gang-of-4-patterns AT cs.uiuc.edu
  • Subject: [gang-of-4-patterns] query on composite pattern
  • Date: Thu, 20 Nov 2003 10:36:27 +0530 (IST)
  • List-archive: <http://mail.cs.uiuc.edu/pipermail/gang-of-4-patterns/>
  • List-id: Design Patterns discussion <gang-of-4-patterns.cs.uiuc.edu>

Hello,

1) What is the exact problem the composite pattern is addressing?
Can I formulate it(problem) like , how do we represent part-whole
hierarchies and to treat individual objects and compositions uniformly?
(is this the problem ?)

2) Assume that we don't have composite pattern.How do we achieve the
solution for the problem that the composite pattern is addressing.In other
words, What is the bad smell for composite design pattern in the code that
doesn't have any pattern based solution? or What is the naive solution for
the problem of composite design pattern?

looking forward for reply.

regards
rajesh

--
===================================================================


"Genius is one percent inspiration and 99 percent perspiration."
-- Thomas Alva Edison


===================================================================






Archive powered by MHonArc 2.6.16.

Top of Page