MCQs > IT & Programming > PHP > Without introducing a non-class member variable, which can be used to keep an eye on the existing number of objects of a given class?

PHP MCQs

Without introducing a non-class member variable, which of the following can be used to keep an eye on the existing number of objects of a given class?

Answer

Correct Answer: Add a static member variable that gets incremented in each constructor and decremented in the destructor.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it