Salesforce
PDII · Question #353
Universal Containers (UC) calculates commissions on their Opportunities in different ways base on complex rules that vary depending on the line of business of the Opportunity. Whenever a new line of…
The correct answer is A. An Apex class with a custom enum. See the full explanation below for the reasoning.
Question
Universal Containers (UC) calculates commissions on their Opportunities in different ways base on complex rules that vary depending on the line of business of the Opportunity. Whenever a new line of business is added to Salesforce at UC, it is likely that a different calculation will need to be added too. When an Opportunity's stage is changed to Closed/Won, its commission should be calculated in real time. What should a developer use so that different implementations of the commission calculation can be invoked on the stage change?
Options
- AAn Apex class with a custom enum
- BA final class with multiple methods
- CAn interface and implementing classes
- DApex Describe Schema methods
How the community answered
(60 responses)- A85% (51)
- B8% (5)
- C2% (1)
- D5% (3)
Community Discussion
No community discussion yet for this question.