You need to sign in to do that
Don't have an account?
Rytom
APEX Methods - varying number of parameters
Is there a way to specify for a Method that it could have a varying number of parameters?
In java you can specify a method has varying number of parameters through:
public double Method_1 (double...parameter) {
}
I was wondering if there's a similar thing availabile in APEX.
Thanks!
Best Answer chosen by Admin (Salesforce Developers)
sfdcfox
No, but you can send in an array, even an array of objects (Object[]), which would allow you to merge any arrangement of elements.