public BinarySearchTree() { _treeEnumeration = new TreeEnumeration <T>(this); _treeTraversal = new TreeTraversal <T>(); _treeSearch = new TreeSearch <T>(); _treeInsert = new TreeInsert <T>(this); _treeDelete = new TreeDelete <T>(this, _treeSearch); }
public BinarySearchTree( ITreeEnumeration <T> treeEnumeration, ITreeTraversal <T> treeTraversal, ITreeSearch <T> treeSearch, ITreeInsert <T> treeInsert, ITreeDelete <T> treeDelete) { _treeEnumeration = treeEnumeration; _treeTraversal = treeTraversal; _treeSearch = treeSearch; _treeInsert = treeInsert; _treeDelete = treeDelete; }