Pergunta de entrevista da empresa Avive Solutions

Using c++, in order to share data across different classes, do they need to be private or public?