MathWorks interview question

Inheritance related questions. And the coding challenge has one inheritance question.