next up previous index
Next: Abstract classes Up: Binary Search Trees Previous: Binary Search Trees   Index

Java implementation

Our representation of binary search trees will seek to implement directly the structural property (B) above. The constructors for this class will ensure that the order property (S) is maintained, and the methods of the class will exploit this property. Before beginning, we take a detour to remind ourselves of some ideas of inheritance and polymorphism in Java.



Subsections

Peter Williams 2005-06-07