Current Forum: Homework 5 General Forum |
Date: Wed Nov 21 2001 10:28 am |
Author: Lee, Peter <petel@cmu.edu> |
Subject: Re: how do I change an object to which there is no reference?? |
|
|
It's a bit hard to understand the question fully, but based on your attempt to use the statement
this = right;
I would guess that you are trying to make the current object be the right child. This is not usually possible in Java (or in most object-oriented languages), and is one reason why a recursive approach is often used. I will have office hours today at 3:30-4:30, if you'd like to talk about this on the whiteboard... |
|