Pergunta de entrevista da empresa Next DLP

Example C++ programming: 1. Implement a class with a member function 'int nobjs()' which returns the number of object of that class currently in existence. What assumptions have you made?