MathWorks interview question

What is inheritance also code the same.