I have a structure like we will call Box objects.
Box
|
+
|
+
|
+
I am trying to set a top box object for a list of leaf node blocks, which in this case are 3 block objects.
The box object has a list of its children in an instance variable of type Vector, called children.
The number of children can be unlimited.
I am trying to write one recursive method for this, but to no avail.
source
share