hi all,hope anyone can describe for me what is happining in this code,its about NaryTrees and am new with trees.
public class NaryTree extends AbstractTree
{
protected Object key ;
protected int degree ;
protected NaryTree[ ] subtree ;
public NaryTree(int degree){
key = null ; this.degree = degree ;
subtree = null ;
}
public NaryTree(int degree, Object key){
this.key = key ;
this.degree = degree ;
subtree = new NaryTree[degree] ;
for(int i = 0; i < degree; i++)
subtree[i] = new NaryTree(degree);
}
// . . .
}