Question d’entretien chez Block

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