Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce DEX-450 Exam - Topic 5 Question 130 Discussion

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 global access modifier.
B) Declare the class and method using the public access modifier.
C) Declare the class as public and use the global access modifier on the method.
D) Declare the class as global and use the public access modifier on the method.

Salesforce DEX-450 Exam - Topic 5 Question 130 Discussion

Actual exam question for Salesforce's DEX-450 exam
Question #: 130
Topic #: 5
[All DEX-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?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Anjelica
13 days ago
I agree with Rashida. Global access is key for external use!
upvoted 0 times
...
Portia
18 days ago
I feel like B might work too, but it limits access.
upvoted 0 times
...
Rashida
23 days ago
This question is tricky! I think A is the best choice.
upvoted 0 times
...
Virgilio
29 days ago
D) seems a bit off, I don't think that's how it works.
upvoted 0 times
...
Charlene
1 month ago
Wait, can you really access it outside the namespace like that?
upvoted 0 times
...
Kassandra
1 month ago
C) sounds right to me, but I'm not 100% sure.
upvoted 0 times
...
Coral
1 month ago
I think B) is a better choice, honestly.
upvoted 0 times
...
Mabel
2 months ago
A) Global access modifier is the way to go!
upvoted 0 times
...
Trina
2 months ago
I feel like option C could be a good compromise, but I’m not confident if it fully meets the requirement for external access.
upvoted 0 times
...
Brigette
2 months ago
I’m a bit confused about the difference between public and global in this context. Does the method need to be global if the class is public?
upvoted 0 times
...
Nikita
2 months ago
I remember practicing a similar question where we had to decide on access modifiers. I think option A makes the most sense for full accessibility.
upvoted 0 times
...
Izetta
2 months ago
I think the global access modifier is the way to go here, but I'm not entirely sure if it applies to both the class and method.
upvoted 0 times
...

Save Cancel