asked 183k views
5 votes
If a function needs to process a variable number of account objects, which is the BEST solution?

An array account parameter with a loop in the function body.

A set of account parameters with a loop for each parameter in the function body.

An account parameter with a loop for that parameter.

A set of 10 account parameters with a series of if-statements checking if each is null.

1 Answer

4 votes

You will need an array and a loop to process each element, so answer A is the best fit.

answered
User Marianosz
by
8.2k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.