created 6/15/98; revised 09/05/99, 06/12/00, 05/04/02

CHAPTER 29 — Strings and Object References

In previous chapters, methods were called with parameters that were primitive data types. For example, in the following the parameters of move() are int:

Point pt = new Point();
pt.move( 14, 22 );

This chapter discusses how to use object references as parameters. The class String is used in many examples.

Chapter Topics:


(Review:) What TWO things does the following statement do?

String zeta = new String( "The last rose of summer." );