Skip to Content.
Sympa Menu

gang-of-4-patterns - [gang-of-4-patterns] Doubt on Composite pattern (GOF)

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

Subject: Design Patterns discussion

List archive

[gang-of-4-patterns] Doubt on Composite pattern (GOF)


Chronological Thread 
  • From: rajesh AT cs.iitm.ernet.in
  • To: gang-of-4-patterns AT cs.uiuc.edu
  • Subject: [gang-of-4-patterns] Doubt on Composite pattern (GOF)
  • Date: Sat, 15 Nov 2003 22:17:57 +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,

I have a doubt on Composite pattern. Does a composite pattern have more
than one composite class ? If not, why? If so, what are the applications
that it contains ?

I feel that if we have two composite classes we will get into infinite
loop because one composite class will make a call to all the subclasses(of
component)operation and as it makes a call to other composite class
(one of the subclass of component) operation method it in turn make calls
to all other subclasses operation and so on. Is it correct ?
Looking forward for ur reply

rajesh

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


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


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






Archive powered by MHonArc 2.6.16.

Top of Page