MathWorks interview question

inheritance in object oriented programming