I have a tree structure representing several nodes with different types -
B1 B2 B3 C1 C2 C3
B11 B22 B33
Here B and C - Object Type A
Children of B are B1, B2 and B3 - Object Type B
Children of C are C1, C2 and C3 - Object Type C
Children of B1 are B11, B22 and B33 - Object Type D
Similar I have N objects at each level representing a certain Object Type.
If I were push these nodes into a tree structure, because my objects are of different type, how I can sure, I push them in right sequence ?
I currently have my root class with a List of List of List of N List objects.