Method Prototypes
Our examples have shown method definitions embedded within the class
definition, as in the
ItemInfo class.
In practice, however, only instance variables and method prototypes
are included in the class definition.
A method prototype shows the method name, return type, and parameter list
without the body.