MATLAB Documentation for OOP
(For reference by students)


Class BTNode

Method Summary
  BTNode (data, left, right )

          Constructor that creates a BTNode object containing data and left, right references.

  char ( )

          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

 


Got comments\feedback\suggestions\complaints\anything whatsoever? Shoot the webmaster an email!

Website created & maintained by Shardul Bhatia and Wen Eu Cheah