Vidyalelo
PHP · Q137

Object Oriented Concept

Programming · PHP · question 137

Q137

You can invoke class constructors that don’t have any relation to the instantiated object by simply prefacing _constructor with the class name like.

A.
classname::__construct()
Answer
B.
classname:__construct()
C.
classname=>__construct()
D.
classname->__construct()

Answer: Option A

Solution

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