MathWorks interview question

Object oriented design questions with diagrams