In the code template below you can see the class Animal with the __init__method. This class is the root of a class hierarchy.
Your task is to add classes Mammal, Reptile and Platypus to this hierarchy.
- Class
Mammalshould inherit from the classAnimal. You should also override the__init__. First, you should print the messageCreated a Mammaland then call the__init__of the parent class using thesuper()function. - Class
Reptileshould inherit from the classAnimal. You should also override the__init__. First, you should print the messageCreated a Reptileand then call the__init__of the parent class using thesuper()function. - Class
Platypusshould inherit from classesMammalandReptilein this order. You should also override the__init__method in a similar way: print the messageCreated a Platypusand then call the__init__of the parent class.