MathWorks Interview Question

Constructor and destructor code snippets