MathWorks Interview Question

Java, OOPS concepts.