dynamicly class extension?
in
Programming Questions
•
2 years ago
Hello everybody,
I'm trying to build a hierarchy tree, but i'm having a problem with the following.
The first class is called 'seed', that's were everything starts from.
In there another class is called, 'child_v1'.
The problem is that you can't create a 'child_1' class in a child_1 object... then they are referring to each other and processing doesn't like that!
But it is also stupid to make a 'child_v2' , 'child_v3' etc. class, because then you allready have a pre-described amount of children/layers.... and it should vary from 1/2 untill .... a lot?
hopefully someone can help me with this program problem :) should be a tough cookie for a more experienced person :)
I'm trying to build a hierarchy tree, but i'm having a problem with the following.
The first class is called 'seed', that's were everything starts from.
In there another class is called, 'child_v1'.
The problem is that you can't create a 'child_1' class in a child_1 object... then they are referring to each other and processing doesn't like that!
But it is also stupid to make a 'child_v2' , 'child_v3' etc. class, because then you allready have a pre-described amount of children/layers.... and it should vary from 1/2 untill .... a lot?
hopefully someone can help me with this program problem :) should be a tough cookie for a more experienced person :)
1