Vidyalelo
PHP · Q19

Object Oriented Concept

Programming · PHP · question 19

Q19

In which of the following circumstance should you use a static reference to a non static method?

A.
Making a method call using parent
Answer
B.
Making a method call using child
C.
Making an object call using parent
D.
Making an object call using child

Answer: Option A

Solution

Answer: Option A
Solution:
Making a method call using parent is the only circumstance in which you should use a static reference to a non-static method.