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.
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.