Array elements, such as accountBalances, as well as array object references, such as accountBalances, can be arguments in a method call, as well as return values from a method. The next few sections show you how and discuss the implications and possibilities.
Recall that an array element, like accountBalances of base type decimal, can be applied in any position of the source code where a simple variable of type decimal can be used. This also allows for array elements to be used as method arguments in method calls.
For example, the following line is a method header of the MaxAmount method specifying that method calls must provide two arguments both of type decimal.
private static decimal ...