Amdocs interview question

Questions on C++ and oops