MathWorks Interview Question

It tested run time polymorphism in Java.