MathWorks Interview Question

Design a class for humans, cats, and dogs