Examveda
Examveda

Which keyword is used to declare a constant property?

A. const

B. con

C. constant

D. _constant

Answer: Option A

Solution(By Examveda Team)

A constant property is declared with the const keyword. Like global constants, class constants cannot be changed once they are set.

This Question Belongs to PHP >> Object Oriented Concept

Join The Discussion

Related Questions on Object Oriented Concept