private int height = 0; //variable that stores the current height of the node in the tree public BSTnode(T input) { data = input; left = null; right = null; }
public T Equals(BSTnode <T> node) { return(this.data = node.data); }