Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Salesforce Platform Developer I Certification Guide

You're reading from   Salesforce Platform Developer I Certification Guide Expert tips, techniques, and mock tests for the Platform Developer I (DEV501) certification exam

Arrow left icon
Product type Paperback
Published in May 2019
Publisher Packt
ISBN-13 9781789802078
Length 546 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Jan Vandevelde Jan Vandevelde
Author Profile Icon Jan Vandevelde
Jan Vandevelde
Gunther Roskams Gunther Roskams
Author Profile Icon Gunther Roskams
Gunther Roskams
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Section 1: Fundamentals, Data Modeling, and Management
2. Salesforce Fundamentals FREE CHAPTER 3. Understanding Data Modeling and Management 4. Section 2: Logic, Process Automation, and the User Interface
5. Declarative Automation 6. Apex Basics 7. Apex - Beyond the Basics 8. The Salesforce User Interface 9. Section 3: Testing, Debugging, and Exercise
10. Testing in Salesforce 11. Debugging and Deployment Tools 12. Mock Tests 13. Other Books You May Enjoy Appendix

Access modifiers

As the name suggests, access modifiers help to restrict the scope of a class, constructor, variable, or method. Let's take a look at the different access modifiers and see how to impact our logic.

Let's go back to our class and analyze the code a little bit more in depth. The first line in our code is the definition of our class:

public class MovieSelector {
}

In this line of code, you have three parts:

  • public: Our access modifier
  • class: Because we define a class
  • MovieSelector: The name of the class

The first part is the most important in this chapter.

The access modifier allows you to define the visibility of your classes, variables, or methods. I will give you an overview of the different access modifiers and what they mean for the visibility when you call the class or method in other classes, subclasses, or outside the application.

Let's take...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime