MathWorks interview question

C++ and Java questions were based on classes and inheritance