Objects and Classes - Modifiers - Parameter Direction

5 important questions on Objects and Classes - Modifiers - Parameter Direction

The parameters for an operation can be flagged with their intended direction.

There are four possible enumeration values to the Parameter Direction.

What four?

  • In
  • Inout
  • Out
  • Return

The rightmost column in the table indicates when the parameter’s values be trusted, an “in” or “inout” parameter will need to have .....?

The rightmost column in the table indicates when the parameter’s values be trusted, an “in” or “inout” parameter will need to have values set before they are passed into the behavior/operation.

Parameters marked with “out,” “inout,” or “return” will have?

Parameters marked with “out,” “inout,” or “return” will have new values after the call, and any previously set value would be lost during the call.
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

What is the ParameterKind :   InOut ?

Passed in by the caller and values (possibly different) are passed out by the behavior

It is common practice to order the parameters by their direction (using the order of “in,” “inout,” “out,” and “return’).

As “in” is the default, it is often omitted.

We also usually omit the direction kind “return” because we can normally recognize it by the location at the end of the operation call.

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo