Vidyalelo
PHP · Q52

Object Oriented Concept

Programming · PHP · question 52

Q52

Which one of the following is the right way to call a class constant, given that the class is mathFunction?

A.
echo PI;
B.
echo mathFunction->PI;
C.
echo mathFunction::PI;
Answer
D.
echo mathFunction=PI;

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board