Apex is an object-oriented programming (OOP) language, similar to Java or other OOP languages, that is executed by the Lightning Platform. Like any other OOP language, Apex uses classes, methods, variables, constants, annotations, and so on. However, unusually, Apex is not case-sensitive, while other languages (such as Java) are.
If you don't know what the definition of OOP is, I can recommend the book, Head First Java, 2nd Edition (you can buy it from http://bit.ly/HeadFJava). If you are familiar with programming in Java, you will see some similarities and some differences. In this book, I will explain how we use OOP within Salesforce by using Apex.
In this chapter, we will cover the following topics:
- What Apex is and how to develop it
- Understanding data types in Apex
- Understanding access to classes in Apex
- Controlling your logic with control flow statements...