National_Instruments
200-500 · Question #196
What is the result of the following code: class T { const A = 42 + 1; } echo T::A;
The correct answer is C. Parse error. See the full explanation below for the reasoning.
Question
What is the result of the following code:
class T { const A = 42 + 1; } echo T::A;
Options
- A42
- B43
- CParse error
How the community answered
(30 responses)- A7% (2)
- B10% (3)
- C83% (25)
Community Discussion
No community discussion yet for this question.