MathWorks Interview Question

What is inheritance also code the same.