Salesforce: How to avoid if-else/switch chains and preserve open/closed principle in Calculator p...
How to avoid if-else/switch chains and preserve open/closed principle in Calculator program (apex)
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA
Thanks to all those great people for their contributions!
(salesforce.stackexchange.com/users/53791/jwok)Jwok
(salesforce.stackexchange.com/users/2984/sfdcfox)sfdcfox
(salesforce.stackexchange.com/users/24889/derek-f)Derek F
A special thanks goes out to the (https://salesforce.stackexchange.com/questions/407913/how-to-avoid-if-else-switch-chains-and-preserve-open-closed-principle-in-calcula)Stackexchange community
I wish you all a wonderful day! Stay safe :)
apex solid-principles switch-case bestpractice