Question: Given the following two classes in Java : The class Node which defines the nodes of a binary tree : And the class
Given the following two classes in Java :
The class " Node " which defines the nodes of a binary tree :

And the class " BinaryTree " which defines a "Binary Tree " along with some methods :

- If one attemps to implement the method " secret " on the following binary - tree :

- what would be the result ?
* Explain what the method " secret " does ?
public class Node private int _number; private Node _leftSon, _rightSon; public Node (int num) number = num; leftSon - null; rightSon - null (return_number;) public int getNumber () public Node getLeftSon return _leftSon; ) public Node getRightSon () return _rightSon; )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
