Jeanne Boyarsky wrote:Welcome to CodeRanch!
In the Node class, how come your variable is named "oBject" instead of "object"?
Overall the class looks good. Two things you could do to make it more concise
1) No need for an if statement. These two code snippets do the same thing:
2) You can chain constructors to avoid duplicate code
could be
thank you so much for your nice replay, I think I've learnt from your notes much
wish you a nice day