MathWorks Interview Question

Program a class that extends another class and overrides its methods. Say the expected output of running each method based on what was overridden.