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
Where pragma is used?
What is overriding in java?
When to use runnable interface vs thread class in java?
What is difference between == and === in js?
What is skeleton and stub? What is the purpose of those?
What are the legal parameters?
What is passing by reference in java?
Name the components that are termed to be Heavy-weight component but available in Light-weight components?
Explain the difference between an Interface and an Abstract class?
What are basic data types?
What is data movement?
How do you trim a space in java?
What is a line break example?
What is the difference between static method and instance method in Java?
What is the effect of keeping a constructor private?