The Apex Master Class
What Is a Constructor in Apex? (Master Class Ep. 13)
What Is A Constructor? A constructor is a special method that runs automatically the moment your class gets created. You don’t call it. It just fires.…
24 Mar 2022
4 min
Category
The Apex Master Class
The Apex Master Class: a free, ordered Salesforce Apex tutorial series that takes you from no experience writing code at all to being able to write high quality production grade code.
34 posts
The Apex Master Class
What Is a Constructor in Apex? (Master Class Ep. 13)
What Is A Constructor? A constructor is a special method that runs automatically the moment your class gets created. You don’t call it. It just fires.…
24 Mar 2022
4 min
The Apex Master Class
How to Instantiate a Class in Apex (Master Class Ep. 14)
What Is Class Instantiation? We now know what a class is, what a method is, and what a constructor is. Which is lovely, and completely useless…
25 Mar 2022
3 min
The Apex Master Class
What Are Operators in Apex? (Master Class Ep. 15)
What Are Operators? Operators are the little symbols that let you assign values, do maths, and compare things. You’ve been using them since episode 8 without…
1 Apr 2022
4 min
The Apex Master Class
What Are Collections in Apex? (Master Class Ep. 16)
What Is A Collection? Every variable we’ve made so far holds exactly one thing: One variable, one value. Fine for a while. Now imagine you’ve queried…
6 Apr 2022
3 min
The Apex Master Class
What Are Lists in Apex? (Apex Master Class Ep. 17)
What Is A List? Salesforce and roughly every other language’s documentation define a list as “an ordered collection of elements that are distinguishable by their indices.”…
8 Apr 2022
3 min
The Apex Master Class
What Are Sets in Apex? (Apex Master Class Ep. 18)
What Is A Set? A set is an unordered collection of elements that contains no duplicates. Which is basically a List with both of its defining…
11 Apr 2022
3 min
The Apex Master Class
What Are Maps in Apex? (Apex Master Class Ep. 19)
What Is A Map? A map is a collection of key/value pairs, where each unique key points to a single value. I’ll be honest with you:…
14 Apr 2022
4 min
The Apex Master Class
What Is the Static Keyword in Apex? (Master Class Ep. 20)
What Does Static Mean? I’ll be straight with you up front: static is one of those keywords that seems perfectly obvious until somebody asks you to…
18 Apr 2022
4 min
The Apex Master Class
When to Use the Static Keyword in Apex (Ep. 21)
Knowing What It Is Isn’t The Same As Knowing When To Use It Last episode we worked out what static actually does. This episode is the…
20 Apr 2022
4 min
The Apex Master Class
When to Use the Global Keyword in Apex (Ep. 22)
First, What Is An Access Modifier? This is the first of four episodes on access modifiers, so let’s define the term before we get into the…
22 Apr 2022
3 min
The Apex Master Class
When to Use the Public Keyword in Apex (Ep. 23)
What Does Public Mean? Last episode we covered global and I told you to use it as little as possible. Today’s is the one you’ll actually…
25 Apr 2022
3 min
The Apex Master Class
When to Use the Protected Keyword in Apex (Ep. 24)
The One Nobody Uses protected is the access modifier most Salesforce developers have never deliberately typed. It sits in an odd middle ground and it only…
27 Apr 2022
3 min