Which one of the following is the right way to define a constant?
A
constant PI = “3.1415”;
B
const $PI = “3.1415”;
C
constant PI = ‘3.1415’;
D
const PI = ‘3.1415’;
Correct Answer: const PI = ‘3.1415’;
Class constants are created like: const NAME = ‘VALUE’;