You need to sign in to do that
Don't have an account?

Need help for find correct answer
A developer created a Lightning Component to display a short text summary for an object and wants to use it with multiple Apex classes.
How should the developer design the Apex classes?
Extend each class from the same base class that has a method getTextSummary() that returns the summary.
Have each class define method getTextSummary() that returns the summary.
Have each class define method getObject() that returns the sObject that is controlled by the Apex class.
Have each class implement an interface that defines method getTextSummary() that returns the summary.
Please let me know which is correct answer form above.
Have each class implement an interface that defines method getTextSummary() that returns the summary.
thanks,
sruthi
@sruthi S95, None of the methods are implemeted in interfaces , if we choose this option we need to implement getTextSummary() method for all the class which uses the interface. I think first option i.e. extend each class from same base class is the correct answer. Please let me know if my understanding is wrong,
Thanks,
Sarthak
Extend each class from the same base class that has a method getTextSummary() that returns the summary.
Regards,
Parikhit .
Regards
Debaranjan