exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 145 discussion

Actual exam question from Salesforce's CRT-450
Question #: 145
Topic #: 1
[All CRT-450 Questions]

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?

  • A. Declare the class and method using the public access modifier.
  • B. Declare the class as global and use the public access modifier on the method.
  • C. Declare the class as public and use the global access modifier on the method.
  • D. Declare the class and method using the global access modifier.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
1vanTT
2 months, 4 weeks ago
Selected Answer: D
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/apps_packaging_apex.htm
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago