Domanda di colloquio di MathWorks

OOP design question, C++ vs Java objects, logical question