SalesforceSalesforce
PDI · Question #239
PDI Question #239: Real Exam Question with Answer & Explanation
Sign in or unlock PDI to reveal the answer and full explanation for question #239. The question stem and answer options stay visible for context.
Submitted by skyler.x· Apr 18, 2026Logic and Process Automation
Question
A developer wrote the following two classes: The StatusFetcher class successfully compiled and saved. However, the Calculator class has a compile time error. How should the developer fix this code?
Options
- AChange the class declaration for the statusFetcher class to public with inherited sharing.
- BMake the isActive method in the StatusFetcher class public.
- CMake the doCalculations method in the Calculation class private.
- DChange the class declaration for the Calculator class to public with inherited sharing.
Unlock PDI to see the answer
You've previewed enough free PDI questions. Unlock PDI 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.
Topics
#Apex#Access Modifiers#Method Visibility#OOP Concepts