Check out Renaun Erickson’s Object Composition example
July 13th, 2006
Yesterday I posted some notes about how I’m getting a bunch of nested components to talk to each other. Some folks call this approach of nested components “object composition.” In particular, Renaun Erickson followed up with a blog post of his own that provides some good sample source code for doing this. He took it a step further than I did and actually created a CompositionBase class that the subcomponents all extend. This seems like a good approach for making the relationships a little more formal while retaining the fluidity that is required.




Recent Comments