Challenge 2: Implement an Animal Class
Implement an animal class and its subclasses from scratch.
We'll cover the following...
We'll cover the following...
Problem statement
The code below has:
-
A parent class named
Animal.- Inside it, define:
namesound__init__()Animal_details()function- It prints the
nameandsoundof theAnimal.
- It prints the
- Inside it, define:
-
Then there are two derived classes*