Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OO Design Question and recursion question?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00266441
Message ID:
00266693
Views:
20
>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
***********************
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform