Salesforce
CRT-450 · Question #121
CRT-450 Question #121: Real Exam Question with Answer & Explanation
Sign in or unlock CRT-450 to reveal the answer and full explanation for question #121. The question stem and answer options stay visible for context.
Question
Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex class, BodyFat, and its method, calculateBodyFat(). The product owner wants to ensure this method is accessible by the consumer of the application when developing customizations outside the ISV's package namespace. Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?
Options
- ADeclare the class and method using the public access modifier.
- BDeclare the class as global and use the public access modifier on the method.
- CDeclare the class as public and use the global access modifier on the method.
- DDeclare the class and method using the global access modifier.
Unlock CRT-450 to see the answer
You've previewed enough free CRT-450 questions. Unlock CRT-450 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.