1.

In which of the following circumstance should you use a static reference to a non static method?(a) Making a method call using parent(b) Making a method call using child(c) Making an object call using parent(d) Making an object call using childThis question was addressed to me in my homework.This intriguing question comes from Object Advanced Features in portion Objects and Databases in PHP of PHP

Answer»

Correct choice is (a) Making a METHOD CALL using PARENT

Easy explanation: Making a method call using parent is the only circumstance in which you should use a STATIC reference to a non-static method.



Discussion

No Comment Found

Related InterviewSolutions