You need to sign in to do that
Don't have an account?
Nisha Radha
This is a sample code I found in Salesforce.developer.com. How do I call the method getSouthernHemisphereSeason as it accepts parameter of type Season? When I tried am getting error variable season is not defined
How to pass parameter of type enum?
Season southernHemisphereSeason = Season.WINTER; public Season getSouthernHemisphereSeason(Season northernHemisphereSeason) { if (northernHemisphereSeason == Season.SUMMER) return southernHemisphereSeason; //... }
This is a sample code I found in Salesforce.developer.com. How do I call the method getSouthernHemisphereSeason as it accepts parameter of type Season? When I tried am getting error variable season is not defined
Please refer to the below link, hope it will help you -
https://salesforce.stackexchange.com/questions/360869/how-do-i-pass-a-parameter-which-is-of-type-enum-to-a-method
Please mark it as the best answer, if it helps.
Thanks!