20Node::Node(
int v) : value(v), left(nullptr), right(nullptr) {}
Declaration of the Node class.
Node * getRight() const
Returns a pointer to the right child node.
Node(int value)
Constructs a Node with the specified integer value.
void setLeft(Node *left)
Sets the pointer to the left child node.
void setValue(int value)
Sets the stored integer value.
void setRight(Node *right)
Sets the pointer to the right child node.
Node * getLeft() const
Returns a pointer to the left child node.
int getValue() const
Returns the stored integer value.