Block Interview Question

Simple OOP exercise with basic functionality. For example, if Dog and Cat inherited from Animal, what would that look like?