I stand to be corrected, but I think you should be able to do such a comparison because the object variables are really references, so you could have two or more variables pointing to the same object, and you can compare any two (or use the 'this' reference) to compare whether they are the same object instance.