Although i understand the relationship between parent and child classes, i'm not quite sure about the relationship (the terminology that is) between an object created within another object.
To clarify with a bit of pseudo-code:
It sure feels like the terminology would be apt here as well (even though it's not the same thing).Code:class ObjectA { // stuff } class ObjectB() { newobject = new ObjectA() }
In UML diagrams newobject would be an an aggregate or composition.
In this discussion they do mention child object; http://programmers.stackexchange.com...psulation-in-c
Would it then be correct to assume you could call ObjectB a parent object to newobject?
I'm not even sure if it's even meaningful to have names for the relationships between them.
Bookmarks