Birdbox

Report a typo

Here's a diagram representing a class hierarchy:

 Class Hierarchy

The arrow points from a child class to the parent.

In the code below, create classes that correspond to this graph.

You should define the __init__ method in the class Animal with the parameter name. In the __init__, you should create an instance attribute name. In other classes, you don't need to define anything.

Write a program in Python 3
# create your classes here
___

Create a free account to access the full topic