Returning multiple values from a function
How can I return multiple values from a function? Values could be different types.
Thanks
How can I return multiple values from a function? Values could be different types.
Thanks
You could return an ArrayList. This offers that flexibility that you can store objects of different types as well the size can vary if needed.
Having a ref or out parameter is another option for achieving the same.
Regards,
Vikram