MathWorks interview question

Object Oriented design concept. virtual, polymorphism, Inheritance