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

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.

主站蜘蛛池模板: 峨眉山市| 常宁市| 紫金县| 山西省| 屏边| 珲春市| 阳春市| 灌南县| 樟树市| 鹿邑县| 腾冲县| 略阳县| 水城县| 文登市| 崇仁县| 抚松县| 沁水县| 嘉义市| 宜川县| 亚东县| 余庆县| 胶南市| 凤庆县| 道孚县| 尉氏县| 博客| 仁寿县| 明水县| 介休市| 蒙山县| 思南县| 道真| 北海市| 河东区| 金阳县| 营口市| 和政县| 渭南市| 合肥市| 大荔县| 柳林县|