Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OO Design Question and recursion question?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00266441
Message ID:
00266693
Vues:
21
>Derek,
>
>VFP6 has a recursive limit now of 128 calls.
>
Can I actually have recursive objects or just function calls?

>You can have a class tree where Part is the superclass and you derive SimplePart and CompositePart from Part. CompositePart has an aggregation component back to Part. Look at the Composite design pattern.
>
What about when the composite part has its own subassembly? Take for instance a furniture company that makes kits for assembling an unfinished chair. That part # for the kit would be say kit123. Now lets assume that they also make a finished chair out of the kit. Part number chair456. If they brought up the bom for chair456, would the part# kit123 be a CompositePart? But when they bring up just the bom for kit123, is it now a SimplePart?
Derek Agar
Acctware Business Systems
derekagar@acctware.com
ICQ: 42332100

***********************
When in trouble call 911

He that dwelleth in the secret place
of the most High shall abide under
the shadow of the Almighty.
Psalm 91:1
***********************
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform