MathWorks interview question

c++: OOP concepts, pointers