Re: Design pattern to sync objects



Bryan schrieb:
Any patterns to keep two objects based on the same data in sync?

A common pattern for this problem is "observer" (e.g.
http://en.wikipedia.org/wiki/Observer_pattern).

In your case however, aSmallPerson cannot
subscribe to a not (yet) existing Person object.
So lazy loading as suggested by Thomas may be a more
practical solution here.


Kai
.