Understanding ‘implements’ in Apex | Intro to Interfaces Before Queueable & Batchable

Опубликовано: 28 Май 2026
на канале: Code With Sally
207
5

In this Salesforce Apex session from Code With Sally, we take a friendly deep dive into the *"implements"* keyword and Apex interfaces — the foundation behind powerful async tools like Queueable, Batchable, and Schedulable!

Instead of jumping into Queueable Apex directly, we pause to explore what it really means when a class `implements` an interface.

🔍 *What you’ll learn in this session:*
Why we’re not covering Queueable yet (and what we needed to learn first!)
What `implements` means in Apex
What an interface is and how it works
Interface syntax in Apex
Demo: One interface + one method → implemented in multiple classes
Demo: Using interfaces to support polymorphism
Demo: Adding methods to an interface: impact on classes
Demo: Implementing multiple interfaces in one class
Interface naming conventions

📁 GitHub folder (with full code & demos):
https://github.com/CodeWithSally/Code...

📺 Missed Part 1 and 2 of the async series?
Part 1 –    • Salesforce Apex: Understanding Asynchronou...  
Part 2 –    • Salesforce Apex: Future Methods (Part 2) –...  

🧠 Next up: We’ll finally explore Queueable Apex in depth!

Timestamps:
00:00 Welcome & channel walkthrough
01:48 Why we’re covering ‘implements’ before Queueable
03:17 What triggered this session?
06:45 What does `implements` mean in Apex?
13:36 What is an Interface in Apex?
15:38 Q&A: How to recognize interface files in VS Code
17:15 Continue: Interface explanation
18:39 Q&A: What are Salesforce-created interfaces?
19:53 Syntax: Defining & using a custom interface
21:48 Demo: One interface + one method
33:37 Demo: Interfaces for polymorphism
38:12 Demo: Adding another method to the interface
40:02 Q&A: Benefits of interfaces + polymorphism
43:43 Continue demo: impact of new method
43:51 Demo: Implementing two interfaces
56:05 Demo: Adding extra (non-interface) methods
01:01:12 Recap: What did we learn about interfaces?
01:04:05 Interface naming best practices
01:06:25 What’s next & async session recap

#Salesforce #Apex #Interfaces #AsyncApex #Queueable #Batchable #Schedulable #CodeWithSally

=============================================================
Music I use: Bensound
License code: DLSVXNKTXOEYES9N

Music: bensound.com
License code: STQHS2SUSWCZKP5B