Nokia interview question

Basic C++ and OOP questions.