Java Reference
In-Depth Information
Up to this point, the examples in this topic have been using simple types as parameters to
methods. However, it is both correct and common to pass objects to methods. For example,
the following program defines a class called Block that stores the dimensions of a three-di-
mensional block:
Search WWH ::




Custom Search