Q51
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’;
AnswerAnswer: Option D
Solution
Answer: Option D
Solution:
Class constants are created like: const NAME = ‘VALUE’;