Multiple choice

Which one of the following must be initialised before it/they can be used in the method call?

  1. Reference Parameters

  2. Output Parameters

  3. Aliases

  4. Both (1) and (2)

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Reference parameters (ref) MUST be initialized before being passed to a method. Output parameters (out) do not require initialization. Aliases refers to ref parameters. The answer A (Reference Parameters) is correct.