In this section we are going to begin developing Apex Classes.
Now what is an Apex class?
Any time we want to develop in Apex, but we don’t want to create a trigger, we do that development in an Apex class.
Apex classes can be used to handle trigger logic, as we alluded to in the last section. They can also be used as controllers for our Visualforce pages and Lightning Components. We can also use classes with invocable methods for our process builders and flows to call, as well as web service methods for external services to call as well.
We’re going to begin with creating a trigger handler class to contain our trigger logic, so let’s jump right in and get started.
In this lesson, we create a basic trigger handler.
In this lesson, we dive deeper into Methods in an Apex Class. We discuss Static Methods, Return Types and Parameters.
Resource:
Class Methods - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_defining_methods.htm
In this lesson we discuss Access Modifiers, Interfaces and Sharing Settings.
Resource:
Apex Class Definition - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_defining.htm