MathWorks Interview Question

Code snippet having inheritance and constructor calls