2.4 Variables only store data

The concept

A variable is a container of a small piece of information. And it only remembers the value of that information. It doesn’t know know how is that value generated or where it is coming from. This concept might seem easy, but it is worth taking some time really understanding it. Here is a sample code.

• • •

2.2 Variable types and conversions

The concept

In our last post, we mentioned that Apex is a strong typed language, which means each variable must have a type and that cannot be changed. In this post, I will show you a number of frequently used variable types in Apex and a few basic operations. Here comes the code:

• • •

1.0 Scenario and Pre-requisites

Most programming language books will start with a Hello World example. While I agree that it is the simplest programme, it doesn’t have much actual usage. Furthermore, it doesn’t well depict how coding in real life will look like.

• • •
1 8 9 10