How should the developer fix this code?
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?
A . Change the class declaration for the statusFetcher class to public with inherited sharing.
B . Make the is Active method in the StatusFetcher class public.
C . Make the doCalculations method in the Calculation class private.
D . Change the class declaration for the Calculator class to public with inherited sharing.
Answer: B
Latest PDI Practice Questions with 191 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments