created: 11/13/98; revised: 09/12/99, 06/13/00, 07/27/02, 08/18/03, 01/19/06
The previous chapters have discussed how to use objects and their methods. The objects were constructed using classes from the Java libraries. This chapter discusses how to define your own classes and construct objects using them.
return
statementvoid
return type(Review:) what is the difference between a class and an object?