A good answer might be:

An alias has been detected!
123     Bob     0
123     Bob     0

The single object referred to by the aliases account1 and by account3 was changed by the method call account3.processCheck( 85 ).


End of the Chapter

That about wraps it up for this chapter. You may wish to check the following topics. Click on a subject that interests you to see a discussion. To get back here, click on the "back arrow" button of your browser.

Check out the next chapter for more discussion of encapsulation and Java language features to support it.



Click here     Back to the main menu.

You have reached the end of the chapter.