Examveda
Examveda

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;

D. echo mathFunction=PI;

Answer: Option C


This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept