MathWorks interview question

Programming Q's were a lot focused on virtual constructors/destructors and classes, polymorphism etc....