3 ms·
> I had an interface (representing a tree node) No you didn't. An interface representing a tree node would have a children() method.
by JackFr 9y ago
> I had an interface (representing a tree node)
No you didn't. An interface representing a tree node would have a children() method.
- yipopov 9y agoWhy? I see why it might be a good idea depending on what problem you are trying to solve, but I don't see why anything has to have any references to its children in order to be a tree node.