Yes, they're coupled in a sense, but in a controlled, OO acceptable manner...some call it aggregation, some composition, but in either case, you're injecting an instance of one object into another, and that's okay! :)
On Tue, May 18, 2010 at 3:09 PM, Allen G <[email protected]> wrote: > Maybe I'm misunderstanding things but even if things are encapsulated, > wouldn't one be coupling those two objects together by doing that? > > --Allen > > > > On Mon, May 17, 2010 at 9:23 PM, Dan Wilson <[email protected]> wrote: > >> Sure. That makes sense. >> >> I do it all the time. If you've encapsulated the Item stuff and the Price >> stuff well enough, then you'd totally want to do that. >> >> DW >> >> >> On Mon, May 17, 2010 at 10:17 PM, Brettski <[email protected]> wrote: >> >>> Hi, >>> >>> I have an item model, and a price model.. >>> >>> Is it OK in terms of OO theory to access the price model directly from >>> the item model? >>> >>> b >>> >>> -- >>> Model-Glue Sites: >>> Home Page: http://www.model-glue.com >>> Documentation: http://docs.model-glue.com >>> Bug Tracker: http://bugs.model-glue.com >>> Blog: http://www.model-glue.com/blog >>> >>> You received this message because you are subscribed to the Google >>> Groups "model-glue" group. >>> To post to this group, send email to [email protected] >>> To unsubscribe from this group, send email to >>> [email protected]<model-glue%[email protected]> >>> For more options, visit this group at >>> http://groups.google.com/group/model-glue?hl=en >> >> >> >> >> -- >> William Osler - "We are here to add what we can to life, not to get what >> we can from life." >> >> -- >> Model-Glue Sites: >> Home Page: http://www.model-glue.com >> Documentation: http://docs.model-glue.com >> Bug Tracker: http://bugs.model-glue.com >> Blog: http://www.model-glue.com/blog >> >> You received this message because you are subscribed to the Google >> Groups "model-glue" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected]<model-glue%[email protected]> >> For more options, visit this group at >> http://groups.google.com/group/model-glue?hl=en >> > > -- > Model-Glue Sites: > Home Page: http://www.model-glue.com > Documentation: http://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to the Google > Groups "model-glue" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<model-glue%[email protected]> > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en
