next up previous
Next: The implicit formal parameter Up: Unit 03 Previous: Lifetime of instance variables

Definition of methods

The definition of a method is similar to the definition of a static method that we have already seen, but in the header of the method the static keyword does not appear. This indicates that the method requires an invocation object.

Hence, the definition of a method is constituted by:

header block


next up previous
Next: The implicit formal parameter Up: Unit 03 Previous: Lifetime of instance variables