MathWorks interview question

It tested run time polymorphism in Java.