Pregunta de entrevista de MathWorks

What is inheritance also code the same.