These are flashcards an notes made by students on topics like 'inout', 'values' and 'parameter', originating from:

- Michael Jesse Chonoles
ISBN-10 0128096403 ISBN-13 9780128096406
1335 Flashcards & Notes
  • This + 400k other summaries, also in PDF!
  • 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

Study Cards on inout, values, parameter

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
Report
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.
Report
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.
Report
What is the ParameterKind :   InOut ?
Passed in by the caller and values (possibly different) are passed out by the behavior
Report
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.
Report
  • Higher grades + faster learning
  • Don't study anything twice
  • 100% sure, 100% understanding
Discover Study Smart