General information
Category:
Object Oriented Programming
Hi Chaim,
> But I don't see what's the problem with code that depends on the instantiation order of objects in a container.
For starters, it breaks when you're modifying that container next year (or for me, tomorrow <g>) and *forget* that the objects need to be instantiated in a certain order. You inadvertently change that order and then you've got a debugging situation you don't need to have. Particularly when the requirement, as stated, is at best questionable. ;-)
That's the antithesis of object oriented programming, where no object should be unduly bound by contrived dependency.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only