Re: Internal State vs. Navigating Associations
- From: "Guruk" <rwilson@xxxxxxxxxxxxxxx>
- Date: 21 Sep 2006 06:39:17 -0700
The question this has prompted me to ask: in what situations is bar a
part of foo's internal state, and in what situations is it really just
an object to which foo has an association? If bar *is* just an
associated object, is it then OK to navigate the association in the
above fashion?
IMO, it's fine to navigate the association in this way as long as you
are careful in what you do to that bar object. Any changes to it, may
impact the foo instance as well.
~ Guruk
.
- References:
- Internal State vs. Navigating Associations
- From: Matt McGill
- Internal State vs. Navigating Associations
- Prev by Date: Re: UML Association?
- Next by Date: Re: Is this too much OOP?
- Previous by thread: Internal State vs. Navigating Associations
- Next by thread: Re: Internal State vs. Navigating Associations
- Index(es):
Relevant Pages
|