educative.io

Educative

Node Class used inside the implemented binarySearchTree

I see we use getLeftChild and getRightChild methods inside the binarySearchTree implementation, without them being defined anywhere.

Is this Node Class (and its methods), a built-in class in Java? How do I import it? Where can I read about it?

These are the method of the node class and are called here.