Answer Posted / marshal
public class BinaryTree
extends AbstractTree
{
protected Object key;
protected BinaryTree left;
protected BinaryTree right;
public BinaryTree (
Object key, BinaryTree left, BinaryTree right)
{
this.key = key;
this.left = left;
this.right = right;
}
public BinaryTree ()
{ this (null, null, null); }
public BinaryTree (Object key)
{ this (key, new BinaryTree (), new BinaryTree()); }
// ...
}
| Is This Answer Correct ? | 7 Yes | 12 No |
Post New Answer View All Answers
Is integer a class?
What is the use of object and class classes?
What advantage do java's layout managers provide over traditional windowing systems?
What is regex in java?
What are keywords give examples?
When does a class need a virtual destructor?
What is the purpose of garbage collection in java? When is it used?
What does java ide mean?
how is final different from finally and finalize in java?
What is used of static keyword in java?
What are three types of loops in java?
What is re-factoring in software?
What is the purpose of nested class in java?
What is java Applet?
How can you avoid serialization in child class if the base class is implementing the serializable interface?