MathWorks interview question

can we have virtual constructor