gang-of-4-patterns AT lists.siebelschool.illinois.edu
Subject: Design Patterns discussion
List archive
- 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
===================================================================
- [gang-of-4-patterns] Doubt on Composite pattern (GOF), rajesh, 11/15/2003
- Re: [gang-of-4-patterns] Doubt on Composite pattern (GOF), oleg shteynbuk, 11/15/2003
- Re: [gang-of-4-patterns] Doubt on Composite pattern (GOF), Bangels Stefan, 11/15/2003
Archive powered by MHonArc 2.6.16.