How should the developer design the Apex Classes? A developer created - ProProfs Discuss
Topics
Products
Follow Us:

How should the developer design the Apex Classes? A developer created a lightning component to display a short text summary for an object andwants to use it with multiple Apex Classes.



A. Have each class define method getTextSummary() that returns the summary.
B. Extend each class from the same base class that has a method getTextSummary() thatreturns the summary.
C. Have each class define method getObject() that returns the sObject that is controlled by theApex Class.
D. Have each class implement an interface that definds method getTextSummary() thatreturns the summary.

This question is part of Platform Dev I
Asked by Csouza, Last updated: Apr 02, 2020

+ Answer
Request

3 Answers

csouza

Csouza

Answered Jul 27, 2018

Have each class implement an interface that definds method getTextSummary() that returns the summary.
1
 

H. Jones

H. Jones, Web Content Writer, San Antonio,

Answered Nov 11, 2018

Classes can be created in Apex. There are different classes that you can develop including top-level classes and inner classes. In order to create a class, you must choose either a public or global modifier. Then you can choose whether you want the modifier to be virtual or abstract. You must name the class with the word class in it. Other options are available depending on what you plan to do.

If a lightning component is created in order to help build your app, you may write a summary of the object for the classes. Finally, you will want to have each class implement an interface that defines the method that returns to the summary. You could also extend the class.

 

Ashish Yadav

Ashish Yadav

Answered Aug 09, 2018

Looks like this can also be an answer:

Extend each class from the same base class that has a method getTextSummary() that returns the summary.

 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.