Passing parameters to methods

  1. Repeat: purpose of parameters:

  2. Terminology: formal and actual parameters:

    When a method is invoked with parameters, SOME INFORMATION of the parameter are computed and copied into the FORMAL parameter VARIABLES

    WHAT INFORMATION being copied depends on the parameter passing mechanism

  3. Parameter passing mechanism

  4. Commonly used parameter passing mechanisms: