| CS 1371 Dept. Presents: |
Class BTNode
| Method Summary | |
|---|---|
| BTNode (data, left, right ) Constructor that creates a BTNode object containing data and left, right references. |
|
The string representation of the BTNode |
|
| eq ( node, target )
Looks for the node equal to the target |
|
| getData ( )
Get the data field from a BTNode |
|
|
getLeft ( ) Get the left node from a BTNode |
|
|
getRight ( ) Get the right node from a BTNode |
|
|
gt ( btn1, btn2 ) Compares 2 BTNodes and returns the larger node |
|
| Method Detail |
|---|
BTNode
btn = BTNode(data,left,right) creates a BTNode object containing the data, left and right fields