Single Choice Not Set

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

ID: #2579 Object Oriented Concept of PHP 1,126 views
Question Info
#2579Q ID
Not SetDifficulty
Object Oriented Concept of PHPTopic

Choose the Best Option

Click any option to instantly check if you're correct.

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

Explanation

echo mathFunction::PI;

Share This Question

Challenge a friend or share with your study group.