Design and develop a class that represents a Binary Tree Node
.
This class will have the following private
attributes:
leftChild
- A pointer to the left child of the node.
number
- An integer.
rightChile
- A pointer to the right child of the node.
Your class should have the following public
methods and constructors:
BinarTreeNode()
- A constructor that initializes all attributes to
null
and 0
.
BinaryTreeNode(int i)
- A constructor that sets the
number
attribute to the specified i and the other
attributes to null
.
get & set
methods for all the attributes.
Name this class BinaryTreeNode
Place this class in the edu.cuny.lehman.cmp326.trees.binary package.
Name this program
Name this program
Name this program
Name this program
Please submit the completed assignment on Blackboard by attaching all your .java files. Make sure to attach all your programs to each submission.