官术网_书友最值得收藏!

Apex Basics

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 (if statements and loops)
  • Querying and updating our Salesforce data with various databases
  • Define the key features of the Apex language
  • Know when to use Apex (and when not to)
  • Create a class with methods and call those methods through Anonymous Apex
  • Use the Developer Console to analyze the execution results

In Chapter 5, Apex - Beyond the Basics, you'll get a deeper dive into the Apex language. We
will learn how to build interfaces, virtual classes and bulk processing records.

A little introduction about class in OOP. If you are already familiar with classes (from
Java or other development languages), you can skip these paragraphs.

主站蜘蛛池模板: 泰和县| 舟山市| 循化| 河池市| 翼城县| 洪江市| 甘孜县| 军事| 林西县| 肇州县| 湖北省| 泸水县| 错那县| 郓城县| 海安县| 抚顺县| 乌海市| 贞丰县| 册亨县| 溧水县| 邳州市| 武义县| 边坝县| 开平市| 闽清县| 固原市| 泰兴市| 天柱县| 乌兰浩特市| 鸡东县| 拉萨市| 深泽县| 申扎县| 泾源县| 响水县| 茶陵县| 耒阳市| 阿克苏市| 龙口市| 沐川县| 民丰县|