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?
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
More PHP MCQ Questions